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