summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/author/blocks.rs
blob: a8068436b70bf021737a64925f55d8b367aa63e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(stmt_expr_attributes)]
#![allow(redundant_semicolons, clippy::no_effect)]

#[rustfmt::skip]
fn main() {
    #[clippy::author]
    {
        ;;;;
    }
}

#[clippy::author]
fn foo() {
    let x = 42i32;
    -x;
}