fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3#![allow(unused_assignments)] 4#![allow(unused_variables)] 5#![allow(dead_code)] 6#![deny(unused_mut)] 7 8struct Foo; 9impl Foo { 10 fn foo(self) {} //~ ERROR: variable does not need to be mutable 11 fn bar(self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable 12} 13 14fn main() {}