]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/inner-attr-after-doc-comment.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / parser / inner-attr-after-doc-comment.stderr
1 error: an inner attribute is not permitted following an outer doc comment
2   --> $DIR/inner-attr-after-doc-comment.rs:6:1
3    |
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 attribute
11 LL |
12 LL |   fn main() {}
13    |   ------------ the inner attribute doesn't annotate this function
14    |
15    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
16 help: to annotate the function, change the attribute from inner to outer style
17    |
18 LL - #![recursion_limit="100"]
19 LL + #[recursion_limit="100"]
20    |
21
22 error: aborting due to previous error
23