mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-17 10:18:20 +00:00
15 lines
241 B
Rust
15 lines
241 B
Rust
#![allow(redundant_semicolons, clippy::no_effect)]
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
#[clippy::author]
|
|
{
|
|
let x = 42i32;
|
|
-x;
|
|
};
|
|
#[clippy::author]
|
|
{
|
|
let expr = String::new();
|
|
drop(expr)
|
|
};
|
|
}
|