2023-03-17 09:27:17 +00:00
|
|
|
fn 1234test() {
|
|
|
|
//~^ ERROR expected identifier, found `1234test`
|
2022-11-11 20:22:47 +00:00
|
|
|
if let 123 = 123 { println!("yes"); }
|
|
|
|
|
|
|
|
if let 2e1 = 123 {
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
}
|
|
|
|
|
|
|
|
let 23name = 123;
|
2023-03-07 10:01:26 +00:00
|
|
|
//~^ ERROR expected identifier, found `23name`
|
2023-11-06 23:43:26 +00:00
|
|
|
}
|
|
|
|
fn foo() {
|
2023-03-17 09:27:17 +00:00
|
|
|
let 2x: i32 = 123;
|
|
|
|
//~^ ERROR expected identifier, found `2x`
|
2023-11-06 23:43:26 +00:00
|
|
|
}
|
|
|
|
fn bar() {
|
2023-03-17 09:27:17 +00:00
|
|
|
let 1x = 123;
|
|
|
|
//~^ ERROR expected identifier, found `1x`
|
2022-11-11 20:22:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|