rust/tests/ui/nll/issue-50343.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
142 B
Rust
Raw Normal View History

// run-pass
#![deny(unused_mut)]
fn main() {
vec![42].iter().map(drop).count();
vec![(42, 22)].iter().map(|(_x, _y)| ()).count();
}