1 error: an inner attribute is not permitted in this context
2 --> $DIR/stmt_expr_attrs_placement.rs:7:13
4 LL | let a = #![allow(warnings)] (1, 2);
7 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
8 = note: outer attributes, like `#[test]`, annotate the item following them
10 error: an inner attribute is not permitted in this context
11 --> $DIR/stmt_expr_attrs_placement.rs:10:14
13 LL | let b = (#![allow(warnings)] 1, 2);
16 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
17 = note: outer attributes, like `#[test]`, annotate the item following them
19 error: an inner attribute is not permitted in this context
20 --> $DIR/stmt_expr_attrs_placement.rs:15:10
22 LL | (#![allow(warnings)] 1, 2)
25 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
26 = note: outer attributes, like `#[test]`, annotate the item following them
28 error: an inner attribute is not permitted in this context
29 --> $DIR/stmt_expr_attrs_placement.rs:21:18
31 LL | let e = (#![allow(warnings)] 1, 2);
34 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
35 = note: outer attributes, like `#[test]`, annotate the item following them
37 error: an inner attribute is not permitted in this context
38 --> $DIR/stmt_expr_attrs_placement.rs:26:14
40 LL | let e = [#![allow(warnings)] 1, 2];
43 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
44 = note: outer attributes, like `#[test]`, annotate the item following them
46 error: an inner attribute is not permitted in this context
47 --> $DIR/stmt_expr_attrs_placement.rs:29:14
49 LL | let f = [#![allow(warnings)] 1; 0];
52 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
53 = note: outer attributes, like `#[test]`, annotate the item following them
55 error: an inner attribute is not permitted in this context
56 --> $DIR/stmt_expr_attrs_placement.rs:36:24
58 LL | let h = MyStruct { #![allow(warnings)] field: 0 };
61 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
62 = note: outer attributes, like `#[test]`, annotate the item following them
64 error: aborting due to 7 previous errors