summaryrefslogtreecommitdiffstats
path: root/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs')
-rw-r--r--tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs b/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs
new file mode 100644
index 000000000..dcc06850d
--- /dev/null
+++ b/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs
@@ -0,0 +1,6 @@
+// check-fail
+// compile-flags: -Dunknown_lints -Atest_unstable_lint
+// error-pattern: unknown lint: `test_unstable_lint`
+// error-pattern: the `test_unstable_lint` lint is unstable
+
+fn main() {}