1 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
2 --> $DIR/register-attr-tool-unused.rs:6:1
4 LL | #[register_attr(attr)]
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/register-attr-tool-unused.rs:1:9
12 = note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
14 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
15 --> $DIR/register-attr-tool-unused.rs:7:1
17 LL | #[register_tool(tool)]
18 | ^^^^^^^^^^^^^^^^^^^^^^
20 error: aborting due to 2 previous errors