diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/underscore-suffix-for-float.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/parser/underscore-suffix-for-float.stderr b/src/test/ui/parser/underscore-suffix-for-float.stderr new file mode 100644 index 000000000..a5f3b6551 --- /dev/null +++ b/src/test/ui/parser/underscore-suffix-for-float.stderr @@ -0,0 +1,15 @@ +error: expected identifier, found reserved identifier `_` + --> $DIR/underscore-suffix-for-float.rs:2:16 + | +LL | let a = 42._; + | ^ expected identifier, found reserved identifier + +error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields + --> $DIR/underscore-suffix-for-float.rs:2:16 + | +LL | let a = 42._; + | ^ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0610`. |