-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-collectionsArea: `std::collections`Area: `std::collections`
Description
This doesn't work but should be possible somehow. @chris-morgan @huonw @Aatch and others found a method to implement one: IRC log. Exact solution link here
use std::collections::HashSet;
#[derive(Hash, Eq, PartialEq)]
enum Enum {
A,
B(HashSet<Enum>),
}
fn main(){
let mut set = HashSet::new();
set.insert(Enum::A);
}
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`