mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-28 13:51:41 +00:00
15 lines
310 B
Rust
15 lines
310 B
Rust
// run-rustfix
|
|
|
|
#![allow(unused_assignments)]
|
|
#![allow(unused_variables)]
|
|
#![allow(dead_code)]
|
|
#![deny(unused_mut)]
|
|
|
|
struct Foo;
|
|
impl Foo {
|
|
fn foo(mut self) {} //~ ERROR: variable does not need to be mutable
|
|
fn bar(mut self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
|
|
}
|
|
|
|
fn main() {}
|