summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/underscore-suffix-for-string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/underscore-suffix-for-string.rs')
-rw-r--r--src/test/ui/parser/underscore-suffix-for-string.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/parser/underscore-suffix-for-string.rs b/src/test/ui/parser/underscore-suffix-for-string.rs
new file mode 100644
index 000000000..2e0ebe2cf
--- /dev/null
+++ b/src/test/ui/parser/underscore-suffix-for-string.rs
@@ -0,0 +1,8 @@
+// check-pass
+
+fn main() {
+ let _ = "Foo"_;
+ //~^ WARNING underscore literal suffix is not allowed
+ //~| WARNING this was previously accepted
+ //~| NOTE issue #42326
+}