]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/attr.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / parser / attr.stderr
CommitLineData
0bf4aa26 1error: an inner attribute is not permitted in this context
416331ca 2 --> $DIR/attr.rs:5:1
0bf4aa26 3 |
532ac7d7 4LL | #![lang = "foo"]
416331ca 5 | ^^^^^^^^^^^^^^^^
c295e0f8
XL
6LL | fn foo() {}
7 | ----------- the inner attribute doesn't annotate this function
0bf4aa26 8 |
c295e0f8
XL
9 = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
10help: to annotate the function, change the attribute from inner to outer style
11 |
12LL - #![lang = "foo"]
13LL + #[lang = "foo"]
14 |
0bf4aa26 15
04454e1e 16error: aborting due to previous error
0bf4aa26 17