Add rustdoc regression test for the unused_braces lint
This commit is contained in:
parent
e42337b608
commit
485f1999f5
1 changed files with 14 additions and 0 deletions
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…
Add table
Reference in a new issue