2019-11-05 18:00:00 -06:00
|
|
|
// check-pass
|
2017-12-10 13:14:01 -06:00
|
|
|
|
2017-08-26 15:18:04 -05: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-05 18:00:00 -06:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
|
2017-08-26 15:18:04 -05:00
|
|
|
// the suggestion appears on all-uppercase names
|
|
|
|
#[warn(DEAD_CODE)]
|
2019-11-05 18:00:00 -06:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
//~| HELP did you mean
|
|
|
|
|
2017-08-26 15:18:04 -05:00
|
|
|
// the suggestion appears also on mixed-case names
|
|
|
|
#[deny(Warnings)]
|
2019-11-05 18:00:00 -06:00
|
|
|
//~^ WARNING unknown lint
|
|
|
|
//~| HELP did you mean
|
|
|
|
|
2017-08-26 15:18:04 -05:00
|
|
|
fn main() {
|
|
|
|
unimplemented!();
|
|
|
|
}
|