Rollup merge of #35299 - circuitfox:E0110-update-error-format, r=jonathandturner
E0110 update error format Fixes #35248 Part of #35233 r? @jonathandturner
This commit is contained in:
commit
84d467c5f9
@ -31,8 +31,11 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
|
||||
break;
|
||||
}
|
||||
for lifetime in segment.parameters.lifetimes() {
|
||||
span_err!(self.sess, lifetime.span, E0110,
|
||||
"lifetime parameters are not allowed on this type");
|
||||
struct_span_err!(self.sess, lifetime.span, E0110,
|
||||
"lifetime parameters are not allowed on this type")
|
||||
.span_label(lifetime.span,
|
||||
&format!("lifetime parameter not allowed on this type"))
|
||||
.emit();
|
||||
break;
|
||||
}
|
||||
for binding in segment.parameters.bindings() {
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
type X = u32<'static>; //~ ERROR E0110
|
||||
//~| NOTE lifetime parameter not allowed on this type
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user