summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/register-attr-tool-unused.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/attributes/register-attr-tool-unused.stderr')
-rw-r--r--src/test/ui/attributes/register-attr-tool-unused.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/attributes/register-attr-tool-unused.stderr b/src/test/ui/attributes/register-attr-tool-unused.stderr
new file mode 100644
index 000000000..8d2e1b6bc
--- /dev/null
+++ b/src/test/ui/attributes/register-attr-tool-unused.stderr
@@ -0,0 +1,21 @@
+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
+