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