]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/stmt_expr_attrs_placement.stderr
Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472
[rust.git] / src / test / ui / parser / stmt_expr_attrs_placement.stderr
1 error: an inner attribute is not permitted in this context
2   --> $DIR/stmt_expr_attrs_placement.rs:7:13
3    |
4 LL |     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
10 error: an inner attribute is not permitted in this context
11   --> $DIR/stmt_expr_attrs_placement.rs:10:14
12    |
13 LL |     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
19 error: an inner attribute is not permitted in this context
20   --> $DIR/stmt_expr_attrs_placement.rs:15:10
21    |
22 LL |         (#![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
28 error: an inner attribute is not permitted in this context
29   --> $DIR/stmt_expr_attrs_placement.rs:21:18
30    |
31 LL |         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
37 error: an inner attribute is not permitted in this context
38   --> $DIR/stmt_expr_attrs_placement.rs:26:14
39    |
40 LL |     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
46 error: an inner attribute is not permitted in this context
47   --> $DIR/stmt_expr_attrs_placement.rs:29:14
48    |
49 LL |     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
55 error: an inner attribute is not permitted in this context
56   --> $DIR/stmt_expr_attrs_placement.rs:36:24
57    |
58 LL |     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
64 error: aborting due to 7 previous errors
65