diff options
| -rw-r--r-- | src/librustc_typeck/check/compare_method.rs | 2 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/check/compare_method.rs b/src/librustc_typeck/check/compare_method.rs index 04fa99540a1..139449e5ab0 100644 --- a/src/librustc_typeck/check/compare_method.rs +++ b/src/librustc_typeck/check/compare_method.rs @@ -739,7 +739,7 @@ fn compare_synthetic_generics<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, let trait_span = tcx.hir.span(trait_node_id); let mut err = struct_span_err!(tcx.sess, impl_span, - E0642, + E0643, "method `{}` has incompatible signature for trait", trait_m.name); err.span_label(trait_span, "annotation in trait"); diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 51ad668550e..328b7f9fdef 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -4625,11 +4625,11 @@ It is recommended that you look for a `new` function or equivalent in the crate's documentation. "##, -E0642: r##" +E0643: r##" This error indicates that there is a mismatch between generic parameters and impl Trait parameters in a trait declaration versus its impl. -```compile_fail,E0642 +```compile_fail,E0643 #![feature(universal_impl_trait)] trait Foo { fn foo(&self, _: &impl Iterator); |
