]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-104088.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / parser / issues / issue-104088.rs
1 fn test() {
2     if let 123 = 123 { println!("yes"); }
3 }
4
5 fn test_2() {
6     let 1x = 123;
7     //~^ ERROR expected identifier, found number literal
8 }
9
10 fn test_3() {
11     let 2x: i32 = 123;
12     //~^ ERROR expected identifier, found number literal
13 }
14
15 fn test_4() {
16     if let 2e1 = 123 {
17         //~^ ERROR mismatched types
18     }
19 }
20
21 fn test_5() {
22     let 23name = 123;
23     //~^ ERROR expected identifier, found number literal
24 }
25
26 fn main() {}