diff options
Diffstat (limited to 'src/test/ui/parser/keywords-followed-by-double-colon.stderr')
-rw-r--r-- | src/test/ui/parser/keywords-followed-by-double-colon.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/parser/keywords-followed-by-double-colon.stderr b/src/test/ui/parser/keywords-followed-by-double-colon.stderr new file mode 100644 index 000000000..4c4d5e5dd --- /dev/null +++ b/src/test/ui/parser/keywords-followed-by-double-colon.stderr @@ -0,0 +1,14 @@ +error: expected identifier, found `::` + --> $DIR/keywords-followed-by-double-colon.rs:2:11 + | +LL | struct::foo(); + | ^^ expected identifier + +error: expected expression, found keyword `mut` + --> $DIR/keywords-followed-by-double-colon.rs:6:5 + | +LL | mut::baz(); + | ^^^ expected expression + +error: aborting due to 2 previous errors + |