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