2015-11-30 13:57:43 -06:00
|
|
|
#![feature(stmt_expr_attributes)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
|
|
|
// Test that attributes on parens get concatenated
|
|
|
|
// in the expected order in the hir folder.
|
|
|
|
|
2021-03-19 18:52:07 -05:00
|
|
|
#[deny(non_snake_case)] #[allow(non_snake_case)] (
|
2015-11-30 13:57:43 -06:00
|
|
|
{
|
|
|
|
let X = 0;
|
|
|
|
let _ = X;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2021-03-19 18:52:07 -05:00
|
|
|
#[allow(non_snake_case)] #[deny(non_snake_case)] (
|
2015-11-30 13:57:43 -06:00
|
|
|
{
|
|
|
|
let X = 0; //~ ERROR snake case name
|
|
|
|
let _ = X;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|