blob: 92ce103586c2584bbddc7a40312185888a698178 [file] [log] [blame]
// run-rustfix
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(dead_code)]
#![deny(unused_mut)]
struct Foo;
impl Foo {
fn foo(self) {} //~ ERROR: variable does not need to be mutable
fn bar(self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
}
fn main() {}