]> git.proxmox.com Git - rustc.git/blame - tests/rustdoc-ui/unused-braces-lint.rs
New upstream version 1.70.0+dfsg2
[rustc.git] / tests / rustdoc-ui / unused-braces-lint.rs
CommitLineData
ba9703b0
XL
1// check-pass
2
3// This tests the bug in #70814, where the unused_braces lint triggered on the following code
4// without providing a span.
5
6#![deny(unused_braces)]
7
8fn main() {
9 {
10 {
11 use std;
12 }
13 }
14}