Renumber error to fix tidy

This commit is contained in:
Christopher Vittal 2017-11-14 20:56:42 -05:00
parent 22f0940f2d
commit 517db79c1f
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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);