summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-tuple.rs
blob: 59e2695dec6dcfcd406b78ee0b95795d0645ff1f (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    // no complaints about the tuple not matching the expected type
    let x: (usize, usize, usize) = (3, .=.);
    //~^ ERROR expected expression, found `.`
    // verify that the parser recovers:
    let y: usize = ""; //~ ERROR mismatched types
    // no complaints about the type
    foo(x);
}

fn foo(_: (usize, usize, usize)) {}