We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fe4b7 commit bc25879Copy full SHA for bc25879
src/librustc_typeck/collect.rs
@@ -2314,8 +2314,12 @@ fn report_unused_parameter(ccx: &CrateCtxt,
2314
kind: &str,
2315
name: &str)
2316
{
2317
- span_err!(ccx.tcx.sess, span, E0207,
2318
- "the {} parameter `{}` is not constrained by the \
2319
- impl trait, self type, or predicates",
2320
- kind, name);
+ struct_span_err!(
+ ccx.tcx.sess, span, E0207,
+ "the {} parameter `{}` is not constrained by the \
+ impl trait, self type, or predicates",
2321
+ kind, name)
2322
+ .span_label(span, &format!("unconstrained lifetime parameter"))
2323
+ .emit();
2324
+
2325
}
0 commit comments