summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/unused-braces-lint.rs
blob: be0e31e4be2ff9d3c985393712f231291c13dd1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

// This tests the bug in #70814, where the unused_braces lint triggered on the following code
// without providing a span.

#![deny(unused_braces)]

fn main() {
    {
        {
            use std;
        }
    }
}