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

#[rustfmt::skip]
fn main() {
    #[clippy::author]
    {
        let x = 42i32;
        -x;
    };
    #[clippy::author]
    {
        let expr = String::new();
        drop(expr)
    };
}