You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/ui/parser/stmt_expr_attrs_placement.stderr
+57-1
Original file line number
Diff line number
Diff line change
@@ -6,5 +6,61 @@ LL | let a = #![allow(warnings)] (1, 2);
6
6
|
7
7
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
8
8
9
-
error: aborting due to previous error
9
+
error: an inner attribute is not permitted in this context
10
+
--> $DIR/stmt_expr_attrs_placement.rs:10:14
11
+
|
12
+
LL | let b = (#![allow(warnings)] 1, 2);
13
+
| ^^^^^^^^^^^^^^^^^^^
14
+
|
15
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
16
+
17
+
error: an inner attribute is not permitted in this context
18
+
--> $DIR/stmt_expr_attrs_placement.rs:15:10
19
+
|
20
+
LL | (#![allow(warnings)] 1, 2)
21
+
| ^^^^^^^^^^^^^^^^^^^
22
+
|
23
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
24
+
25
+
error: an inner attribute is not permitted in this context
26
+
--> $DIR/stmt_expr_attrs_placement.rs:21:18
27
+
|
28
+
LL | let e = (#![allow(warnings)] 1, 2);
29
+
| ^^^^^^^^^^^^^^^^^^^
30
+
|
31
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
32
+
33
+
error: an inner attribute is not permitted in this context
34
+
--> $DIR/stmt_expr_attrs_placement.rs:26:14
35
+
|
36
+
LL | let e = [#![allow(warnings)] 1, 2];
37
+
| ^^^^^^^^^^^^^^^^^^^
38
+
|
39
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
40
+
41
+
error: an inner attribute is not permitted in this context
42
+
--> $DIR/stmt_expr_attrs_placement.rs:29:14
43
+
|
44
+
LL | let f = [#![allow(warnings)] 1; 0];
45
+
| ^^^^^^^^^^^^^^^^^^^
46
+
|
47
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
48
+
49
+
error: an inner attribute is not permitted in this context
50
+
--> $DIR/stmt_expr_attrs_placement.rs:32:26
51
+
|
52
+
LL | let g = match true { #![allow(warnings)] _ => {} };
53
+
| ^^^^^^^^^^^^^^^^^^^
54
+
|
55
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
56
+
57
+
error: an inner attribute is not permitted in this context
58
+
--> $DIR/stmt_expr_attrs_placement.rs:36:24
59
+
|
60
+
LL | let h = MyStruct { #![allow(warnings)] field: 0 };
61
+
| ^^^^^^^^^^^^^^^^^^^
62
+
|
63
+
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
0 commit comments