2020-07-02 14:32:12 +09:00
|
|
|
// run-rustfix
|
|
|
|
|
2014-10-27 15:37:07 -07:00
|
|
|
#![allow(unused_assignments)]
|
|
|
|
#![allow(unused_variables)]
|
2014-03-21 18:05:05 -07:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![deny(unused_mut)]
|
2014-01-27 14:18:36 +02:00
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
|
|
fn foo(mut self) {} //~ ERROR: variable does not need to be mutable
|
2014-07-07 23:19:35 -07:00
|
|
|
fn bar(mut self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
|
2014-01-27 14:18:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|