]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }