]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/inner-attr.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / parser / inner-attr.stderr
1 error: an inner attribute is not permitted following an outer attribute
2   --> $DIR/inner-attr.rs:3:1
3    |
4 LL | #[feature(lang_items)]
5    | ---------------------- previous outer attribute
6 LL | 
7 LL | #![recursion_limit="100"]
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
9 LL | fn main() {}
10    | ------------ the inner attribute doesn't annotate this function
11    |
12    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
13 help: to annotate the function, change the attribute from inner to outer style
14    |
15 LL - #![recursion_limit="100"]
16 LL + #[recursion_limit="100"]
17    | 
18
19 error: aborting due to previous error
20