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