rust/tests/rustdoc-ui/lints/unused-braces-lint.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
232 B
Rust
Raw Normal View History

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