]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/reasons-erroneous.rs
feature-gate lint reasons
[rust.git] / src / test / ui / lint / reasons-erroneous.rs
1 #![feature(lint_reasons)]
2
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
17
18 fn main() {}