Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
lint-expr-stmt-attrs-for-early-lints.rs
blob: 9ca3ecc72d2c28ab622d1926e99a7ed882b8bfd0 [
file
] [
log
] [
blame
]
#![
feature
(
stmt_expr_attributes
)]
#![
deny
(
unused_parens
)]
// Tests that lint attributes on statements/expressions are
// correctly applied to non-builtin early (AST) lints
fn
main
()
{
#[
allow
(
unused_parens
)]
{
let
_
=
(
9
);
}
}