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