summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/bad-value-ident-true.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/bad-value-ident-true.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/bad-value-ident-true.stderr b/src/test/ui/parser/bad-value-ident-true.stderr
new file mode 100644
index 000000000..74137fa70
--- /dev/null
+++ b/src/test/ui/parser/bad-value-ident-true.stderr
@@ -0,0 +1,13 @@
+error: expected identifier, found keyword `true`
+ --> $DIR/bad-value-ident-true.rs:1:4
+ |
+LL | fn true() { }
+ | ^^^^ expected identifier, found keyword
+ |
+help: escape `true` to use it as an identifier
+ |
+LL | fn r#true() { }
+ | ++
+
+error: aborting due to previous error
+