Add rustdoc regression test for the unused_braces lint

This commit is contained in:
flip1995 2020-04-24 18:22:59 +02:00
parent e42337b608
commit 485f1999f5
No known key found for this signature in database
GPG Key ID: 2CEFCDB27ED0BE79

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