2018-09-30 01:00:50 +00:00
|
|
|
#![feature(lint_reasons)]
|
|
|
|
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(absolute_paths_not_starting_with_crate, reason = 0)]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE reason must be a string literal
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE reason must be a string literal
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE reason must be a string literal
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE reason must be a string literal
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE bad attribute argument
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE bad attribute argument
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
|
|
|
//~| NOTE bad attribute argument
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE bad attribute argument
|
2018-10-12 07:21:21 +00:00
|
|
|
#![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE reason in lint attribute must come last
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE reason in lint attribute must come last
|
2018-10-12 07:21:21 +00:00
|
|
|
#![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
|
|
|
|
//~^ ERROR malformed lint attribute
|
2020-01-08 17:02:10 +00:00
|
|
|
//~| ERROR malformed lint attribute
|
|
|
|
//~| NOTE reason in lint attribute must come last
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE reason in lint attribute must come last
|
2018-10-12 07:21:21 +00:00
|
|
|
#![warn(missing_copy_implementations, reason)]
|
2018-09-30 00:25:26 +00:00
|
|
|
//~^ WARN unknown lint
|
2019-07-16 20:17:38 +00:00
|
|
|
//~| NOTE `#[warn(unknown_lints)]` on by default
|
2018-09-30 00:25:26 +00:00
|
|
|
|
|
|
|
fn main() {}
|