error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
  --> $DIR/register-attr-tool-unused.rs:6:1
   |
LL | #[register_attr(attr)]
   | ^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/register-attr-tool-unused.rs:1:9
   |
LL | #![deny(unused)]
   |         ^^^^^^
   = note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`

error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
  --> $DIR/register-attr-tool-unused.rs:7:1
   |
LL | #[register_tool(tool)]
   | ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

