Add rustdoc regression test for the unused_braces lint
This commit is contained in:
parent
e42337b608
commit
485f1999f5
14
src/test/rustdoc-ui/unused-braces-lint.rs
Normal file
14
src/test/rustdoc-ui/unused-braces-lint.rs
Normal file
@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user