diff options
Diffstat (limited to 'tests/ui/lint/lint-forbid-attr.stderr')
-rw-r--r-- | tests/ui/lint/lint-forbid-attr.stderr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-forbid-attr.stderr b/tests/ui/lint/lint-forbid-attr.stderr new file mode 100644 index 000000000..5977b9c94 --- /dev/null +++ b/tests/ui/lint/lint-forbid-attr.stderr @@ -0,0 +1,21 @@ +error[E0453]: allow(deprecated) incompatible with previous forbid + --> $DIR/lint-forbid-attr.rs:3:9 + | +LL | #![forbid(deprecated)] + | ---------- `forbid` level set here +LL | +LL | #[allow(deprecated)] + | ^^^^^^^^^^ overruled by previous forbid + +error[E0453]: allow(deprecated) incompatible with previous forbid + --> $DIR/lint-forbid-attr.rs:3:9 + | +LL | #![forbid(deprecated)] + | ---------- `forbid` level set here +LL | +LL | #[allow(deprecated)] + | ^^^^^^^^^^ overruled by previous forbid + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0453`. |