blob: 6b279c5539e6aae4116ebe9d74df0709e6c21679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
fn 1234test() {
//~^ ERROR expected identifier, found `1234test`
if let 123 = 123 { println!("yes"); }
if let 2e1 = 123 {
//~^ ERROR mismatched types
}
let 23name = 123;
//~^ ERROR expected identifier, found `23name`
}
fn foo() {
let 2x: i32 = 123;
//~^ ERROR expected identifier, found `2x`
}
fn bar() {
let 1x = 123;
//~^ ERROR expected identifier, found `1x`
}
fn main() {}
|