diff options
Diffstat (limited to 'tests/ui/parser/issue-103869.rs')
-rw-r--r-- | tests/ui/parser/issue-103869.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-103869.rs b/tests/ui/parser/issue-103869.rs new file mode 100644 index 000000000..28c442bdd --- /dev/null +++ b/tests/ui/parser/issue-103869.rs @@ -0,0 +1,9 @@ +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() {} |