summary refs log tree commit diff
path: root/src/test/ui/issues/issue-34334.rs
blob: 928d217441ef2f2685477c731520b9db497dd78b (plain)
1
2
3
4
5
6
7
8
9
10
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 expression
    //~| 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 for type `()` in the current scope
}