]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/register-attr-tool-unused.stderr
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / attributes / register-attr-tool-unused.stderr
1 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
2   --> $DIR/register-attr-tool-unused.rs:6:1
3    |
4 LL | #[register_attr(attr)]
5    | ^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/register-attr-tool-unused.rs:1:9
9    |
10 LL | #![deny(unused)]
11    |         ^^^^^^
12    = note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
13
14 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
15   --> $DIR/register-attr-tool-unused.rs:7:1
16    |
17 LL | #[register_tool(tool)]
18    | ^^^^^^^^^^^^^^^^^^^^^^
19
20 error: aborting due to 2 previous errors
21