Skip to content

Commit

Permalink
Add rustdoc regression test for the unused_braces lint
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Apr 24, 2020
1 parent e42337b commit 485f199
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/rustdoc-ui/unused-braces-lint.rs
@@ -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;
}
}
}

0 comments on commit 485f199

Please sign in to comment.