]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / lint / lint-expr-stmt-attrs-for-early-lints.rs
1 // run-pass
2
3 #![feature(stmt_expr_attributes)]
4 #![deny(unused_parens)]
5
6 // Tests that lint attributes on statements/expressions are
7 // correctly applied to non-builtin early (AST) lints
8
9 fn main() {
10     #[allow(unused_parens)]
11     {
12         let _ = (9);
13     }
14 }