mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
13 lines
170 B
Rust
13 lines
170 B
Rust
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
fn the_answer(ref mut x: u8) {
|
|
*x = 42;
|
|
}
|
|
|
|
fn main() {
|
|
let mut x = 0;
|
|
the_answer(x);
|
|
println!("The answer is {}.", x);
|
|
}
|