summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/old-suffixes-are-really-forbidden.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/old-suffixes-are-really-forbidden.rs')
-rw-r--r--tests/ui/parser/old-suffixes-are-really-forbidden.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/parser/old-suffixes-are-really-forbidden.rs b/tests/ui/parser/old-suffixes-are-really-forbidden.rs
new file mode 100644
index 000000000..eea95b7d6
--- /dev/null
+++ b/tests/ui/parser/old-suffixes-are-really-forbidden.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let a = 1_is; //~ ERROR invalid suffix
+ let b = 2_us; //~ ERROR invalid suffix
+}