]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-103869.rs
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / parser / issue-103869.rs
1 enum VecOrMap{
2     vec: Vec<usize>,
3     //~^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `:`
4     //~| HELP: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
5     //~| ERROR expected item, found `:`
6     map: HashMap<String,usize>
7 }
8
9 fn main() {}