blob: b8a794f4b92fa621127ebb831452ad287748aa8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#![feature(stmt_expr_attributes)]
// Test that various placements of the inner attribute are parsed correctly,
// or not.
fn main() {
let a = #![allow(warnings)] (1, 2);
//~^ ERROR an inner attribute is not permitted in this context
let b = (#![allow(warnings)] 1, 2);
let c = {
#![allow(warnings)]
(#![allow(warnings)] 1, 2)
};
let d = {
#![allow(warnings)]
let e = (#![allow(warnings)] 1, 2);
e
};
}
|