rust/tests/ui/author/blocks.rs

17 lines
222 B
Rust
Raw Normal View History

2019-05-19 09:52:44 -05:00
#![feature(stmt_expr_attributes)]
2019-09-27 11:01:04 -05:00
#![allow(redundant_semicolon, clippy::no_effect)]
2019-05-19 09:52:44 -05:00
#[rustfmt::skip]
2019-05-19 09:52:44 -05:00
fn main() {
#[clippy::author]
{
;;;;
}
}
#[clippy::author]
fn foo() {
let x = 42i32;
-x;
}