10 lines
321 B
Rust
10 lines
321 B
Rust
enum VecOrMap{
|
|
vec: Vec<usize>,
|
|
//~^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `:`
|
|
//~| HELP: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
|
//~| ERROR expected item, found `:`
|
|
map: HashMap<String,usize>
|
|
}
|
|
|
|
fn main() {}
|