]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/reasons-erroneous.stderr
Handle `#[expect(unfulfilled_lint_expectations)]` with a lint message
[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:8: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:13: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:13:29
21    |
22 LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
23    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
24
25 error[E0452]: malformed lint attribute input
26   --> $DIR/reasons-erroneous.rs:22:23
27    |
28 LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
29    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
30
31 error[E0452]: malformed lint attribute input
32   --> $DIR/reasons-erroneous.rs:22:23
33    |
34 LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
35    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
36
37 error[E0452]: malformed lint attribute input
38   --> $DIR/reasons-erroneous.rs:31:36
39    |
40 LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
41    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
42
43 error[E0452]: malformed lint attribute input
44   --> $DIR/reasons-erroneous.rs:31:36
45    |
46 LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
47    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
48
49 error[E0452]: malformed lint attribute input
50   --> $DIR/reasons-erroneous.rs:40:44
51    |
52 LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
53    |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
54
55 error[E0452]: malformed lint attribute input
56   --> $DIR/reasons-erroneous.rs:45:25
57    |
58 LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
59    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
60
61 warning: unknown lint: `reason`
62   --> $DIR/reasons-erroneous.rs:50:39
63    |
64 LL | #![warn(missing_copy_implementations, reason)]
65    |                                       ^^^^^^
66    |
67    = note: `#[warn(unknown_lints)]` on by default
68
69 error[E0452]: malformed lint attribute input
70   --> $DIR/reasons-erroneous.rs:3:58
71    |
72 LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
73    |                                                          ^ reason must be a string literal
74
75 error[E0452]: malformed lint attribute input
76   --> $DIR/reasons-erroneous.rs:8:40
77    |
78 LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
79    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal
80
81 error[E0452]: malformed lint attribute input
82   --> $DIR/reasons-erroneous.rs:13:29
83    |
84 LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
85    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
86
87 error[E0452]: malformed lint attribute input
88   --> $DIR/reasons-erroneous.rs:13:29
89    |
90 LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
91    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
92
93 error[E0452]: malformed lint attribute input
94   --> $DIR/reasons-erroneous.rs:22:23
95    |
96 LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
97    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
98
99 error[E0452]: malformed lint attribute input
100   --> $DIR/reasons-erroneous.rs:22:23
101    |
102 LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
103    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
104
105 error[E0452]: malformed lint attribute input
106   --> $DIR/reasons-erroneous.rs:31:36
107    |
108 LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
109    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
110
111 error[E0452]: malformed lint attribute input
112   --> $DIR/reasons-erroneous.rs:31:36
113    |
114 LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
115    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
116
117 error[E0452]: malformed lint attribute input
118   --> $DIR/reasons-erroneous.rs:40:44
119    |
120 LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
121    |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
122
123 error[E0452]: malformed lint attribute input
124   --> $DIR/reasons-erroneous.rs:45:25
125    |
126 LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
127    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
128
129 error: aborting due to 20 previous errors; 1 warning emitted
130
131 For more information about this error, try `rustc --explain E0452`.