#36553 specialisation error 520 is misleading

fit string in one line
This commit is contained in:
Gianni Ciccarelli 2016-09-26 03:18:42 +02:00
parent a35275c89b
commit 63a58929b9

View File

@ -912,8 +912,7 @@ fn report_forbidden_specialization<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
match tcx.span_of_impl(parent_impl) {
Ok(span) => {
err.span_label(span, &"parent `impl` is here");
err.note(&format!("to specialize, `{}` \
in the parent `impl` must be marked `default`",
err.note(&format!("to specialize, `{}` in the parent `impl` must be marked `default`",
impl_item.name));
}
Err(cname) => {