summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint-unknown-lints-at-crate-level.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint-unknown-lints-at-crate-level.rs')
-rw-r--r--src/test/ui/lint-unknown-lints-at-crate-level.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/lint-unknown-lints-at-crate-level.rs b/src/test/ui/lint-unknown-lints-at-crate-level.rs
new file mode 100644
index 000000000..61d27f1ef
--- /dev/null
+++ b/src/test/ui/lint-unknown-lints-at-crate-level.rs
@@ -0,0 +1,7 @@
+// run-pass
+// compile-flags: -D warnings -D unknown-lints
+
+#![allow(unknown_lints)]
+#![allow(random_lint_name)]
+
+fn main() {}