rust-clippy/tests/ui/author/blocks.rs
flip1995 87fa2d90f5
Rustup to rust-lang/rust#62984
Lint redundant_semicolon was added to rustc
2019-08-15 10:14:06 +02:00

16 lines
203 B
Rust

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