2019-11-06 00:00:00 +00:00
|
|
|
//@ check-pass
|
2017-12-10 19:14:01 +00:00
|
|
|
|
2017-08-26 20:18:04 +00:00
|
|
|
// this tests the `unknown_lint` lint, especially the suggestions
|
|
|
|
|
|
|
|
// the suggestion only appears if a lint with the lowercase name exists
|
|
|
|
#[allow(FOO_BAR)]
|
2019-11-06 00:00:00 +00:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
|
2017-08-26 20:18:04 +00:00
|
|
|
// the suggestion appears on all-uppercase names
|
|
|
|
#[warn(DEAD_CODE)]
|
2019-11-06 00:00:00 +00:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
//~| HELP did you mean
|
|
|
|
|
2017-08-26 20:18:04 +00:00
|
|
|
// the suggestion appears also on mixed-case names
|
|
|
|
#[deny(Warnings)]
|
2019-11-06 00:00:00 +00:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
//~| HELP did you mean
|
|
|
|
|
2017-08-26 20:18:04 +00:00
|
|
|
fn main() {
|
|
|
|
unimplemented!();
|
|
|
|
}
|