summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-forbid-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/lint-forbid-attr.rs')
-rw-r--r--tests/ui/lint/lint-forbid-attr.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-forbid-attr.rs b/tests/ui/lint/lint-forbid-attr.rs
new file mode 100644
index 000000000..6d4cfd834
--- /dev/null
+++ b/tests/ui/lint/lint-forbid-attr.rs
@@ -0,0 +1,7 @@
+#![forbid(deprecated)]
+
+#[allow(deprecated)]
+//~^ ERROR allow(deprecated) incompatible
+//~| ERROR allow(deprecated) incompatible
+fn main() {
+}