]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / 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 }