rust-clippy/tests/ui/author/blocks.rs
2019-09-27 18:01:04 +02:00

16 lines
222 B
Rust

#![feature(stmt_expr_attributes)]
#![allow(redundant_semicolon, clippy::no_effect)]
#[rustfmt::skip]
fn main() {
#[clippy::author]
{
;;;;
}
}
#[clippy::author]
fn foo() {
let x = 42i32;
-x;
}