summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr
blob: a5ee244452007ffcdd9748f8aba6a036836cf0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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