]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }