rust/tests/ui/author/blocks.rs

17 lines
203 B
Rust
Raw Normal View History

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