]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/unused-braces-lint.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / rustdoc-ui / unused-braces-lint.rs
1 // check-pass
2
3 // This tests the bug in #70814, where the unused_braces lint triggered on the following code
4 // without providing a span.
5
6 #![deny(unused_braces)]
7
8 fn main() {
9     {
10         {
11             use std;
12         }
13     }
14 }