blob: 3357dd42f4e35087817292f9c17c8c1352126ca8 [file] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/34334>.
//! Test tuple pattern syntax doesn't ICE on erroneous type.
fn main () {
let sr: Vec<(u32, _, _) = vec![];
//~^ ERROR expected one of
let sr2: Vec<(u32, _, _)> = sr.iter().map(|(faction, th_sender, th_receiver)| {}).collect();
//~^ ERROR a value of type `Vec<(u32, _, _)>` cannot be built
}