]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-89971-outer-attr-following-inner-attr-ice.stderr
1 error: an inner attribute is not permitted in this context
2   --> $DIR/issue-89971-outer-attr-following-inner-attr-ice.rs:11:1
3    |
4 LL | #![deny(missing_docs)]
5    | ^^^^^^^^^^^^^^^^^^^^^^
6 ...
7 LL | struct Mew();
8    | ------------- the inner attribute doesn't annotate this struct
9    |
10    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
11 help: to annotate the struct, change the attribute from inner to outer style
12    |
13 LL - #![deny(missing_docs)]
14 LL + #[deny(missing_docs)]
15    |
16
17 error: aborting due to previous error
18