]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/attr.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / attr.stderr
1 error: an inner attribute is not permitted in this context
2   --> $DIR/attr.rs:5:1
3    |
4 LL | #![lang = "foo"]
5    | ^^^^^^^^^^^^^^^^
6 LL | fn foo() {}
7    | ----------- the inner attribute doesn't annotate this function
8    |
9    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
10 help: to annotate the function, change the attribute from inner to outer style
11    |
12 LL - #![lang = "foo"]
13 LL + #[lang = "foo"]
14    |
15
16 error: aborting due to previous error
17