Add rustdoc regression test for the unused_braces lint

This commit is contained in:
flip1995 2020-04-24 18:22:59 +02:00 committed by Mark Rousskov
parent 13c28adfd5
commit cd1fb13fb7

View 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;
}
}
}