mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 02:54:26 +00:00
16 lines
241 B
Rust
16 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)
|
|
};
|
|
}
|