mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-28 13:51:41 +00:00
15 lines
302 B
Plaintext
15 lines
302 B
Plaintext
// 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() {}
|