summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/underscore-suffix-for-string.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/underscore-suffix-for-string.stderr')
-rw-r--r--tests/ui/parser/underscore-suffix-for-string.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/parser/underscore-suffix-for-string.stderr b/tests/ui/parser/underscore-suffix-for-string.stderr
new file mode 100644
index 000000000..2fe2c130e
--- /dev/null
+++ b/tests/ui/parser/underscore-suffix-for-string.stderr
@@ -0,0 +1,14 @@
+error: underscore literal suffix is not allowed
+ --> $DIR/underscore-suffix-for-string.rs:6:18
+ |
+LL | let _ = "Foo"_;
+ | ^
+
+error: underscore literal suffix is not allowed
+ --> $DIR/underscore-suffix-for-string.rs:15:16
+ |
+LL | sink!("Foo"_);
+ | ^
+
+error: aborting due to 2 previous errors
+