diff options
Diffstat (limited to 'tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr')
-rw-r--r-- | tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr b/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr new file mode 100644 index 000000000..9bf416341 --- /dev/null +++ b/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr @@ -0,0 +1,13 @@ +error: expected identifier, found keyword `extern` + --> $DIR/keyword-extern-as-identifier-pat.rs:2:9 + | +LL | let extern = 0; + | ^^^^^^ expected identifier, found keyword + | +help: escape `extern` to use it as an identifier + | +LL | let r#extern = 0; + | ++ + +error: aborting due to previous error + |