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