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
|
|
|
|
//~| HELP reason must be a string literal
|
|
|
|
#![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
|
|
|
//~| HELP reason must be a string literal
|
|
|
|
#![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
|
|
|
#![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
|
|
|
|
//~^ ERROR malformed lint attribute
|
|
|
|
#![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
|
|
|
|
//~^ ERROR malformed lint attribute
|
|
|
|
#![warn(ellipsis_inclusive_range_patterns, reason)]
|
|
|
|
//~^ WARN unknown lint
|
|
|
|
|
|
|
|
fn main() {}
|