fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB59 linesraw
1error: expected identifier, found `1234test`
2  --> $DIR/issue-104088.rs:1:4
3   |
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   |         ^^
24
25error: expected identifier, found `2x`
26  --> $DIR/issue-104088.rs:12:9
27   |
28LL |     let 2x: i32 = 123;
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   |         ^
36
37error: expected identifier, found `1x`
38  --> $DIR/issue-104088.rs:15:9
39   |
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   |         ^
48
49error[E0308]: mismatched types
50  --> $DIR/issue-104088.rs:5:12
51   |
52LL |     if let 2e1 = 123 {
53   |            ^^^   --- this expression has type `{integer}`
54   |            |
55   |            expected integer, found floating-point number
56
57error: aborting due to 5 previous errors
58
59For more information about this error, try `rustc --explain E0308`.