]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-unknown-lint.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-unknown-lint.stderr
1 warning: unknown lint: `not_a_real_lint`
2   --> $DIR/lint-unknown-lint.rs:11:10
3    |
4 LL | #![allow(not_a_real_lint)] //~ WARN unknown lint
5    |          ^^^^^^^^^^^^^^^
6    |
7    = note: #[warn(unknown_lints)] on by default
8
9 error: unused variable: `unused`
10   --> $DIR/lint-unknown-lint.rs:13:17
11    |
12 LL | fn main() { let unused = (); } //~ ERROR unused variable
13    |                 ^^^^^^ help: consider using `_unused` instead
14    |
15 note: lint level defined here
16   --> $DIR/lint-unknown-lint.rs:12:9
17    |
18 LL | #![deny(unused)]
19    |         ^^^^^^
20    = note: #[deny(unused_variables)] implied by #[deny(unused)]
21
22 error: aborting due to previous error
23