summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-104088.rs
blob: 3dc636b6a33bd5db95805b44a321838b934f6f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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`

    let 2x: i32 = 123;
    //~^ ERROR expected identifier, found `2x`

    let 1x = 123;
    //~^ ERROR expected identifier, found `1x`
}

fn main() {}