summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/issue-50343.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/nll/issue-50343.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/nll/issue-50343.rs b/src/test/ui/nll/issue-50343.rs
new file mode 100644
index 000000000..dd0afbbdf
--- /dev/null
+++ b/src/test/ui/nll/issue-50343.rs
@@ -0,0 +1,8 @@
+// run-pass
+
+#![deny(unused_mut)]
+
+fn main() {
+ vec![42].iter().map(drop).count();
+ vec![(42, 22)].iter().map(|(_x, _y)| ()).count();
+}