summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-50343.rs
blob: dd0afbbdfc6fa6db5c0b2a18a95af750a0fc64bb (plain)
1
2
3
4
5
6
7
8
// run-pass

#![deny(unused_mut)]

fn main() {
    vec![42].iter().map(drop).count();
    vec![(42, 22)].iter().map(|(_x, _y)| ()).count();
}