fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: an inner attribute is not permitted in this context 2 --> $DIR/stmt_expr_attrs_placement.rs:7:13 3 | 4LL | let a = #![allow(warnings)] (1, 2); 5 | ^^^^^^^^^^^^^^^^^^^ 6 | 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 9 10error: an inner attribute is not permitted in this context 11 --> $DIR/stmt_expr_attrs_placement.rs:10:14 12 | 13LL | let b = (#![allow(warnings)] 1, 2); 14 | ^^^^^^^^^^^^^^^^^^^ 15 | 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 18 19error: an inner attribute is not permitted in this context 20 --> $DIR/stmt_expr_attrs_placement.rs:15:10 21 | 22LL | (#![allow(warnings)] 1, 2) 23 | ^^^^^^^^^^^^^^^^^^^ 24 | 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 27 28error: an inner attribute is not permitted in this context 29 --> $DIR/stmt_expr_attrs_placement.rs:21:18 30 | 31LL | let e = (#![allow(warnings)] 1, 2); 32 | ^^^^^^^^^^^^^^^^^^^ 33 | 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 36 37error: an inner attribute is not permitted in this context 38 --> $DIR/stmt_expr_attrs_placement.rs:26:14 39 | 40LL | let e = [#![allow(warnings)] 1, 2]; 41 | ^^^^^^^^^^^^^^^^^^^ 42 | 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 45 46error: an inner attribute is not permitted in this context 47 --> $DIR/stmt_expr_attrs_placement.rs:29:14 48 | 49LL | let f = [#![allow(warnings)] 1; 0]; 50 | ^^^^^^^^^^^^^^^^^^^ 51 | 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 54 55error: an inner attribute is not permitted in this context 56 --> $DIR/stmt_expr_attrs_placement.rs:36:24 57 | 58LL | let h = MyStruct { #![allow(warnings)] field: 0 }; 59 | ^^^^^^^^^^^^^^^^^^^ 60 | 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 63 64error: aborting due to 7 previous errors 65