summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr')
-rw-r--r--src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr b/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr
new file mode 100644
index 000000000..a5ee24445
--- /dev/null
+++ b/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr
@@ -0,0 +1,18 @@
+error: an inner attribute is not permitted in this context
+ --> $DIR/issue-89971-outer-attr-following-inner-attr-ice.rs:11:1
+ |
+LL | #![deny(missing_docs)]
+ | ^^^^^^^^^^^^^^^^^^^^^^
+...
+LL | struct Mew();
+ | ------------- the inner attribute doesn't annotate this struct
+ |
+ = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
+help: to annotate the struct, change the attribute from inner to outer style
+ |
+LL - #![deny(missing_docs)]
+LL + #[deny(missing_docs)]
+ |
+
+error: aborting due to previous error
+