rust-clippy/tests/ui/author/blocks.rs

16 lines
172 B
Rust
Raw Normal View History

2019-05-19 14:52:44 +00:00
#![feature(stmt_expr_attributes)]
#[rustfmt::skip]
2019-05-19 14:52:44 +00:00
fn main() {
#[clippy::author]
{
;;;;
}
}
#[clippy::author]
fn foo() {
let x = 42i32;
-x;
}