Files
rust/src/test/ui/issues/issue-34334.rs

7 lines
290 B
Rust
Raw Normal View History

fn main () {
let sr: Vec<(u32, _, _) = vec![];
2020-11-21 15:44:06 +01:00
//~^ ERROR only path types can be used in associated type constraints
let sr2: Vec<(u32, _, _)> = sr.iter().map(|(faction, th_sender, th_receiver)| {}).collect();
//~^ ERROR a value of type `Vec<(u32, _, _)>` cannot be built
}