1 #![feature(lint_reasons)]
3 #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
4 //~^ ERROR malformed lint attribute
5 //~| HELP reason must be a string literal
6 #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
7 //~^ ERROR malformed lint attribute
8 //~| HELP reason must be a string literal
9 #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
10 //~^ ERROR malformed lint attribute
11 #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
12 //~^ ERROR malformed lint attribute
13 #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
14 //~^ ERROR malformed lint attribute
15 #![warn(ellipsis_inclusive_range_patterns, reason)]
16 //~^ WARN unknown lint