2023-10-04 18:34:50 +00:00
|
|
|
//@ compile-flags: -Zdeduplicate-diagnostics=yes
|
|
|
|
|
2018-09-30 00:25:26 +00:00
|
|
|
#![warn(absolute_paths_not_starting_with_crate, reason = 0)]
|
|
|
|
//~^ ERROR malformed lint attribute
|
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
|
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
|
2019-05-22 00:47:23 +00:00
|
|
|
//~| NOTE bad attribute argument
|
2024-06-05 08:06:09 +00:00
|
|
|
#![warn(unsafe_code, blerp = "or in league with robbers have reversed the signposts")]
|
2018-09-30 00:25:26 +00:00
|
|
|
//~^ ERROR malformed lint attribute
|
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
|
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
|
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
|
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() {}
|