summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-unknown-lint.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/lint/lint-unknown-lint.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-unknown-lint.stderr b/src/test/ui/lint/lint-unknown-lint.stderr
new file mode 100644
index 000000000..0cb6b4957
--- /dev/null
+++ b/src/test/ui/lint/lint-unknown-lint.stderr
@@ -0,0 +1,26 @@
+error: unknown lint: `not_a_real_lint`
+ --> $DIR/lint-unknown-lint.rs:3:10
+ |
+LL | #![allow(not_a_real_lint)]
+ | ^^^^^^^^^^^^^^^
+ |
+note: the lint level is defined here
+ --> $DIR/lint-unknown-lint.rs:1:9
+ |
+LL | #![deny(unknown_lints)]
+ | ^^^^^^^^^^^^^
+
+error: unknown lint: `dead_cod`
+ --> $DIR/lint-unknown-lint.rs:5:9
+ |
+LL | #![deny(dead_cod)]
+ | ^^^^^^^^ help: did you mean: `dead_code`
+
+error: unknown lint: `rust_2018_idiots`
+ --> $DIR/lint-unknown-lint.rs:9:9
+ |
+LL | #![deny(rust_2018_idiots)]
+ | ^^^^^^^^^^^^^^^^ help: did you mean: `rust_2018_idioms`
+
+error: aborting due to 3 previous errors
+