summary refs log tree commit diff
path: root/src/test/ui/issues/issue-34334.rs
blob: afe4d42edd8c8da6ec5b6931f4eb6aee65417c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main () {
    let sr: Vec<(u32, _, _) = vec![];
    //~^ ERROR expected one of `,` or `>`, found `=`
    //~| ERROR expected value, found struct `Vec`
    //~| ERROR mismatched types
    //~| ERROR invalid left-hand side of assignment
    //~| ERROR expected expression, found reserved identifier `_`
    //~| ERROR expected expression, found reserved identifier `_`
    let sr2: Vec<(u32, _, _)> = sr.iter().map(|(faction, th_sender, th_receiver)| {}).collect();
    //~^ ERROR no method named `iter` found
}