rust/src/test/ui/lint/reasons-erroneous.stderr

46 lines
1.7 KiB
Plaintext
Raw Normal View History

error[E0452]: malformed lint attribute
--> $DIR/reasons-erroneous.rs:1:58
|
LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
| ^
|
= help: reason must be a string literal
error[E0452]: malformed lint attribute
--> $DIR/reasons-erroneous.rs:4:40
|
LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: reason must be a string literal
error[E0452]: malformed lint attribute
--> $DIR/reasons-erroneous.rs:7:29
|
LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0452]: malformed lint attribute
--> $DIR/reasons-erroneous.rs:9:23
|
LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0452]: malformed lint attribute
--> $DIR/reasons-erroneous.rs:11:36
|
LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unknown lint: `reason`
--> $DIR/reasons-erroneous.rs:13:44
|
LL | #![warn(ellipsis_inclusive_range_patterns, reason)]
| ^^^^^^
|
= note: #[warn(unknown_lints)] on by default
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0452`.