summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-104088.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-104088.stderr')
-rw-r--r--tests/ui/parser/issues/issue-104088.stderr29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-104088.stderr b/tests/ui/parser/issues/issue-104088.stderr
new file mode 100644
index 000000000..ff4b4bdb6
--- /dev/null
+++ b/tests/ui/parser/issues/issue-104088.stderr
@@ -0,0 +1,29 @@
+error: expected identifier, found number literal
+ --> $DIR/issue-104088.rs:6:9
+ |
+LL | let 1x = 123;
+ | ^^ identifiers cannot start with a number
+
+error: expected identifier, found number literal
+ --> $DIR/issue-104088.rs:11:9
+ |
+LL | let 2x: i32 = 123;
+ | ^^ identifiers cannot start with a number
+
+error: expected identifier, found number literal
+ --> $DIR/issue-104088.rs:22:9
+ |
+LL | let 23name = 123;
+ | ^^^^^^ identifiers cannot start with a number
+
+error[E0308]: mismatched types
+ --> $DIR/issue-104088.rs:16:12
+ |
+LL | if let 2e1 = 123 {
+ | ^^^ --- this expression has type `{integer}`
+ | |
+ | expected integer, found floating-point number
+
+error: aborting due to 4 previous errors
+
+For more information about this error, try `rustc --explain E0308`.