summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover/recover-missing-semi.rs
blob: f47d5e6805f88708d5d1574f0d304df5451388ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let _: usize = ()
    //~^ ERROR mismatched types
    //~| ERROR expected `;`
    let _ = 3;
}

fn foo() -> usize {
    let _: usize = ()
    //~^ ERROR mismatched types
    //~| ERROR expected `;`
    return 3;
}