]> git.proxmox.com Git - rustc.git/blame - tests/ui/parser/issues/issue-104088.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / parser / issues / issue-104088.stderr
CommitLineData
353b0b11
FG
1error: expected identifier, found `1234test`
2 --> $DIR/issue-104088.rs:1:4
487cf647 3 |
353b0b11
FG
4LL | fn 1234test() {
5 | ^^^^^^^^ expected identifier
6 |
7help: identifiers cannot start with a number
8 --> $DIR/issue-104088.rs:1:4
9 |
10LL | fn 1234test() {
11 | ^^^^
12
13error: expected identifier, found `23name`
14 --> $DIR/issue-104088.rs:9:9
15 |
16LL | let 23name = 123;
17 | ^^^^^^ expected identifier
18 |
19help: identifiers cannot start with a number
20 --> $DIR/issue-104088.rs:9:9
21 |
22LL | let 23name = 123;
23 | ^^
487cf647 24
353b0b11
FG
25error: expected identifier, found `2x`
26 --> $DIR/issue-104088.rs:12:9
487cf647
FG
27 |
28LL | let 2x: i32 = 123;
353b0b11
FG
29 | ^^ expected identifier
30 |
31help: identifiers cannot start with a number
32 --> $DIR/issue-104088.rs:12:9
33 |
34LL | let 2x: i32 = 123;
35 | ^
487cf647 36
353b0b11
FG
37error: expected identifier, found `1x`
38 --> $DIR/issue-104088.rs:15:9
487cf647 39 |
353b0b11
FG
40LL | let 1x = 123;
41 | ^^ expected identifier
42 |
43help: identifiers cannot start with a number
44 --> $DIR/issue-104088.rs:15:9
45 |
46LL | let 1x = 123;
47 | ^
487cf647
FG
48
49error[E0308]: mismatched types
353b0b11 50 --> $DIR/issue-104088.rs:5:12
487cf647
FG
51 |
52LL | if let 2e1 = 123 {
53 | ^^^ --- this expression has type `{integer}`
54 | |
55 | expected integer, found floating-point number
56
353b0b11 57error: aborting due to 5 previous errors
487cf647
FG
58
59For more information about this error, try `rustc --explain E0308`.