Skip to content

Commit 485f199

Browse files
committed
Add rustdoc regression test for the unused_braces lint
1 parent e42337b commit 485f199

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

0 commit comments

Comments
 (0)