rust/tests/ui/issues/issue-34334.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
249 B
Rust
Raw Normal View History

fn main () {
let sr: Vec<(u32, _, _) = vec![];
2020-12-15 14:03:25 -06:00
//~^ 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
2020-12-15 14:03:25 -06:00
}