mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
13 lines
183 B
Rust
13 lines
183 B
Rust
// check-pass
|
|
|
|
#![deny(unused_mut)]
|
|
|
|
fn main() {
|
|
let mut is_mut @ not_mut = 42;
|
|
&mut is_mut;
|
|
¬_mut;
|
|
let not_mut @ mut is_mut = 42;
|
|
&mut is_mut;
|
|
¬_mut;
|
|
}
|