]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-45296.stderr
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / ui / parser / issues / issue-45296.stderr
1 error: an inner attribute is not permitted in this context
2   --> $DIR/issue-45296.rs:4:5
3    |
4 LL |     #![allow(unused_variables)]
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 -     #![allow(unused_variables)]
13 LL +     #[allow(unused_variables)]
14    | 
15
16 error: aborting due to previous error
17