diff options
Diffstat (limited to 'tests/ui/parser/keyword-impl-as-identifier.rs')
-rw-r--r-- | tests/ui/parser/keyword-impl-as-identifier.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/parser/keyword-impl-as-identifier.rs b/tests/ui/parser/keyword-impl-as-identifier.rs new file mode 100644 index 000000000..df529bae0 --- /dev/null +++ b/tests/ui/parser/keyword-impl-as-identifier.rs @@ -0,0 +1,5 @@ +// This file was auto-generated using 'src/etc/generate-keyword-tests.py impl' + +fn main() { + let impl = "foo"; //~ error: expected identifier, found keyword `impl` +} |