rust/tests/ui/parser/issues/issue-104088.rs
2023-01-11 09:32:08 +00:00

27 lines
437 B
Rust

fn test() {
if let 123 = 123 { println!("yes"); }
}
fn test_2() {
let 1x = 123;
//~^ ERROR expected identifier, found number literal
}
fn test_3() {
let 2x: i32 = 123;
//~^ ERROR expected identifier, found number literal
}
fn test_4() {
if let 2e1 = 123 {
//~^ ERROR mismatched types
}
}
fn test_5() {
let 23name = 123;
//~^ ERROR expected identifier, found number literal
}
fn main() {}