@@ -30,7 +30,7 @@ note: method defined here, with 2 lifetime parameters: `'a`, `'b`
30
30
LL | fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
31
31
| ^^^^^ -- --
32
32
33
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
33
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
34
34
--> $DIR/method-call-lifetime-args-fail.rs:27:15
35
35
|
36
36
LL | S::late::<'static>(S, &0, &0);
@@ -42,7 +42,7 @@ note: the late bound lifetime parameter is introduced here
42
42
LL | fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
43
43
| ^^
44
44
45
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
45
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
46
46
--> $DIR/method-call-lifetime-args-fail.rs:29:15
47
47
|
48
48
LL | S::late::<'static, 'static>(S, &0, &0);
@@ -54,7 +54,7 @@ note: the late bound lifetime parameter is introduced here
54
54
LL | fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
55
55
| ^^
56
56
57
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
57
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
58
58
--> $DIR/method-call-lifetime-args-fail.rs:31:15
59
59
|
60
60
LL | S::late::<'static, 'static, 'static>(S, &0, &0);
@@ -66,7 +66,7 @@ note: the late bound lifetime parameter is introduced here
66
66
LL | fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
67
67
| ^^
68
68
69
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
69
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
70
70
--> $DIR/method-call-lifetime-args-fail.rs:34:21
71
71
|
72
72
LL | S::late_early::<'static, 'static>(S, &0);
@@ -78,7 +78,7 @@ note: the late bound lifetime parameter is introduced here
78
78
LL | fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
79
79
| ^^
80
80
81
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
81
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
82
82
--> $DIR/method-call-lifetime-args-fail.rs:36:21
83
83
|
84
84
LL | S::late_early::<'static, 'static, 'static>(S, &0);
@@ -90,7 +90,7 @@ note: the late bound lifetime parameter is introduced here
90
90
LL | fn late_early<'a, 'b>(self, _: &'a u8) -> &'b u8 { loop {} }
91
91
| ^^
92
92
93
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
93
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
94
94
--> $DIR/method-call-lifetime-args-fail.rs:40:24
95
95
|
96
96
LL | S::late_implicit::<'static>(S, &0, &0);
@@ -102,7 +102,7 @@ note: the late bound lifetime parameter is introduced here
102
102
LL | fn late_implicit(self, _: &u8, _: &u8) {}
103
103
| ^
104
104
105
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
105
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
106
106
--> $DIR/method-call-lifetime-args-fail.rs:42:24
107
107
|
108
108
LL | S::late_implicit::<'static, 'static>(S, &0, &0);
@@ -114,7 +114,7 @@ note: the late bound lifetime parameter is introduced here
114
114
LL | fn late_implicit(self, _: &u8, _: &u8) {}
115
115
| ^
116
116
117
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
117
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
118
118
--> $DIR/method-call-lifetime-args-fail.rs:44:24
119
119
|
120
120
LL | S::late_implicit::<'static, 'static, 'static>(S, &0, &0);
@@ -126,7 +126,7 @@ note: the late bound lifetime parameter is introduced here
126
126
LL | fn late_implicit(self, _: &u8, _: &u8) {}
127
127
| ^
128
128
129
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
129
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
130
130
--> $DIR/method-call-lifetime-args-fail.rs:47:30
131
131
|
132
132
LL | S::late_implicit_early::<'static, 'static>(S, &0);
@@ -138,7 +138,7 @@ note: the late bound lifetime parameter is introduced here
138
138
LL | fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
139
139
| ^
140
140
141
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
141
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
142
142
--> $DIR/method-call-lifetime-args-fail.rs:49:30
143
143
|
144
144
LL | S::late_implicit_early::<'static, 'static, 'static>(S, &0);
@@ -150,7 +150,7 @@ note: the late bound lifetime parameter is introduced here
150
150
LL | fn late_implicit_early<'b>(self, _: &u8) -> &'b u8 { loop {} }
151
151
| ^
152
152
153
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
153
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
154
154
--> $DIR/method-call-lifetime-args-fail.rs:52:35
155
155
|
156
156
LL | S::late_implicit_self_early::<'static, 'static>(&S);
@@ -162,7 +162,7 @@ note: the late bound lifetime parameter is introduced here
162
162
LL | fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
163
163
| ^
164
164
165
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
165
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
166
166
--> $DIR/method-call-lifetime-args-fail.rs:54:35
167
167
|
168
168
LL | S::late_implicit_self_early::<'static, 'static, 'static>(&S);
@@ -174,7 +174,7 @@ note: the late bound lifetime parameter is introduced here
174
174
LL | fn late_implicit_self_early<'b>(&self) -> &'b u8 { loop {} }
175
175
| ^
176
176
177
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
177
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
178
178
--> $DIR/method-call-lifetime-args-fail.rs:57:28
179
179
|
180
180
LL | S::late_unused_early::<'static, 'static>(S);
@@ -186,7 +186,7 @@ note: the late bound lifetime parameter is introduced here
186
186
LL | fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
187
187
| ^^
188
188
189
- error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
189
+ error[E0794] : cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
190
190
--> $DIR/method-call-lifetime-args-fail.rs:59:28
191
191
|
192
192
LL | S::late_unused_early::<'static, 'static, 'static>(S);
@@ -232,4 +232,5 @@ LL | fn early<'a, 'b>(self) -> (&'a u8, &'b u8) { loop {} }
232
232
233
233
error: aborting due to 18 previous errors
234
234
235
- For more information about this error, try `rustc --explain E0107`.
235
+ Some errors have detailed explanations: E0107, E0794.
236
+ For more information about an error, try `rustc --explain E0107`.
0 commit comments