mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
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() {}
|