rust/tests/ui/lint/lint-unknown-lint.rs

14 lines
380 B
Rust
Raw Normal View History

#![deny(unknown_lints)]
#![allow(not_a_real_lint)] //~ ERROR unknown lint
#![deny(dead_cod)] //~ ERROR unknown lint
//~| HELP did you mean
//~| SUGGESTION dead_code
2021-05-05 10:33:14 -05:00
#![deny(rust_2018_idiots)] //~ ERROR unknown lint
//~| HELP did you mean
//~| SUGGESTION rust_2018_idioms
fn main() {}