summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/reasons-erroneous.stderr
blob: 5521af17c84128e11ec70c02df890d25937a53f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:3:58
   |
LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
   |                                                          ^ reason must be a string literal

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:8:40
   |
LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:13:29
   |
LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:13:29
   |
LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:22:23
   |
LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:22:23
   |
LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:31:36
   |
LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:31:36
   |
LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:40:44
   |
LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
   |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:45:25
   |
LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:3:58
   |
LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
   |                                                          ^ reason must be a string literal

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:8:40
   |
LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:13:29
   |
LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:13:29
   |
LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:22:23
   |
LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:22:23
   |
LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:31:36
   |
LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:31:36
   |
LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:40:44
   |
LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
   |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last

error[E0452]: malformed lint attribute input
  --> $DIR/reasons-erroneous.rs:45:25
   |
LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last

warning: unknown lint: `reason`
  --> $DIR/reasons-erroneous.rs:50:39
   |
LL | #![warn(missing_copy_implementations, reason)]
   |                                       ^^^^^^
   |
   = note: `#[warn(unknown_lints)]` on by default

error: aborting due to 20 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0452`.