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