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/issues/issue-45296.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error: an inner attribute is not permitted in this context
2
-
--> $DIR/issue-45296.rs:4:7
2
+
--> $DIR/issue-45296.rs:4:5
3
3
|
4
4
LL | #![allow(unused_variables)]
5
-
| ^
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.
Copy file name to clipboardExpand all lines: src/test/ui/parser/attr.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error: an inner attribute is not permitted in this context
2
-
--> $DIR/attr.rs:5:3
2
+
--> $DIR/attr.rs:5:1
3
3
|
4
4
LL | #![lang = "foo"]
5
-
| ^
5
+
| ^^^^^^^^^^^^^^^^
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.
Copy file name to clipboardExpand all lines: src/test/ui/parser/inner-attr-after-doc-comment.stderr
+8-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,13 @@
1
1
error: an inner attribute is not permitted following an outer doc comment
2
-
--> $DIR/inner-attr-after-doc-comment.rs:6:3
2
+
--> $DIR/inner-attr-after-doc-comment.rs:6:1
3
3
|
4
-
LL | #![recursion_limit="100"]
5
-
| ^
4
+
LL | / /**
5
+
LL | | * My module
6
+
LL | | */
7
+
| |___- previous doc comment
8
+
LL |
9
+
LL | #![recursion_limit="100"]
10
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
6
11
|
7
12
= 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.
Copy file name to clipboardExpand all lines: src/test/ui/parser/inner-attr.stderr
+5-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
error: an inner attribute is not permitted following an outer attribute
2
-
--> $DIR/inner-attr.rs:3:3
2
+
--> $DIR/inner-attr.rs:3:1
3
3
|
4
+
LL | #[feature(lang_items)]
5
+
| ---------------------- previous outer attribute
6
+
LL |
4
7
LL | #![recursion_limit="100"]
5
-
| ^
8
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
6
9
|
7
10
= 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