diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-34334.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-34334.rs b/src/test/ui/issues/issue-34334.rs new file mode 100644 index 000000000..51486bc40 --- /dev/null +++ b/src/test/ui/issues/issue-34334.rs @@ -0,0 +1,8 @@ +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 + +} |