1 error[E0452]: malformed lint attribute input
2 --> $DIR/reasons-erroneous.rs:3:58
4 LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
5 | ^ reason must be a string literal
7 error[E0452]: malformed lint attribute input
8 --> $DIR/reasons-erroneous.rs:6:40
10 LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal
13 error[E0452]: malformed lint attribute input
14 --> $DIR/reasons-erroneous.rs:9:29
16 LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
19 error[E0452]: malformed lint attribute input
20 --> $DIR/reasons-erroneous.rs:12:23
22 LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
25 error[E0452]: malformed lint attribute input
26 --> $DIR/reasons-erroneous.rs:15:36
28 LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
31 error[E0452]: malformed lint attribute input
32 --> $DIR/reasons-erroneous.rs:18:44
34 LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
35 | ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
37 error[E0452]: malformed lint attribute input
38 --> $DIR/reasons-erroneous.rs:21:25
40 LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
43 warning: unknown lint: `reason`
44 --> $DIR/reasons-erroneous.rs:24:39
46 LL | #![warn(missing_copy_implementations, reason)]
49 = note: #[warn(unknown_lints)] on by default
51 error: aborting due to 7 previous errors
53 For more information about this error, try `rustc --explain E0452`.