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

17 lines
223 B
Rust
Raw Normal View History

2019-05-19 14:52:44 +00:00
#![feature(stmt_expr_attributes)]
2020-03-03 23:54:27 +00:00
#![allow(redundant_semicolons, clippy::no_effect)]
2019-05-19 14:52:44 +00:00
#[rustfmt::skip]
2019-05-19 14:52:44 +00:00
fn main() {
#[clippy::author]
{
;;;;
}
}
#[clippy::author]
fn foo() {
let x = 42i32;
-x;
}