]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/attributes/register-attr-tool-unused.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / attributes / register-attr-tool-unused.stderr
index 85a4fa4a7481313c0fbd8201fe29fa6c3bb0baea..8d2e1b6bc2894dbf5224bc62d8cba45eb4441457 100644 (file)
@@ -1,4 +1,4 @@
-error: unused attribute
+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)]
@@ -12,22 +12,10 @@ 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:6:1
-   |
-LL | #[register_attr(attr)]
-   | ^^^^^^^^^^^^^^^^^^^^^^
-
-error: unused attribute
-  --> $DIR/register-attr-tool-unused.rs:8:1
-   |
-LL | #[register_tool(tool)]
-   | ^^^^^^^^^^^^^^^^^^^^^^
-
-error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
-  --> $DIR/register-attr-tool-unused.rs:8:1
+  --> $DIR/register-attr-tool-unused.rs:7:1
    |
 LL | #[register_tool(tool)]
    | ^^^^^^^^^^^^^^^^^^^^^^
 
-error: aborting due to 4 previous errors
+error: aborting due to 2 previous errors