rust/tests/ui/author/blocks.rs
2020-03-04 00:56:43 +01:00

17 lines
223 B
Rust

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