mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
9 lines
281 B
Rust
9 lines
281 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 }`
|
||
|
map: HashMap<String,usize>
|
||
|
}
|
||
|
|
||
|
fn main() {}
|