diff options
Diffstat (limited to 'tests/ui/invalid/invalid-plugin-attr.stderr')
-rw-r--r-- | tests/ui/invalid/invalid-plugin-attr.stderr | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/invalid/invalid-plugin-attr.stderr b/tests/ui/invalid/invalid-plugin-attr.stderr new file mode 100644 index 000000000..d3882d33f --- /dev/null +++ b/tests/ui/invalid/invalid-plugin-attr.stderr @@ -0,0 +1,22 @@ +warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/pull/64675 + --> $DIR/invalid-plugin-attr.rs:4:1 + | +LL | #[plugin(bla)] + | ^^^^^^^^^^^^^^ help: may be removed in a future compiler version + | + = note: `#[warn(deprecated)]` on by default + +error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` + --> $DIR/invalid-plugin-attr.rs:4:1 + | +LL | #[plugin(bla)] + | ^^^^^^^^^^^^^^ + | +note: the lint level is defined here + --> $DIR/invalid-plugin-attr.rs:1:9 + | +LL | #![deny(unused_attributes)] + | ^^^^^^^^^^^^^^^^^ + +error: aborting due to previous error; 1 warning emitted + |