mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +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() {}
|