summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/underscore-suffix-for-float.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/underscore-suffix-for-float.rs')
-rw-r--r--src/test/ui/parser/underscore-suffix-for-float.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/parser/underscore-suffix-for-float.rs b/src/test/ui/parser/underscore-suffix-for-float.rs
new file mode 100644
index 000000000..c9b7eced0
--- /dev/null
+++ b/src/test/ui/parser/underscore-suffix-for-float.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let a = 42._; //~ ERROR expected identifier, found reserved identifier `_`
+ //~| ERROR `{integer}` is a primitive type and therefore doesn't have fields
+}