2020-07-02 14:32:12 +09:00
|
|
|
// run-rustfix
|
|
|
|
|
2018-04-30 15:31:37 -07:00
|
|
|
#![deny(unused_mut)]
|
2020-07-02 14:32:12 +09:00
|
|
|
#![allow(unused_variables)] // for rustfix
|
2018-04-30 15:31:37 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
|
|
|
|
//~^ ERROR: variable does not need to be mutable
|
|
|
|
}
|