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