Skip to content

Commit

Permalink
Use a different error code to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevlamynck committed Sep 26, 2017
1 parent 3730dfd commit 838105f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Expand Up @@ -4892,7 +4892,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
let mut err = struct_span_err! {
self.tcx.sess,
span,
E0631,
E0632,
"cannot provide explicit type parameters when `impl Trait` is \
used in argument position."
};
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/diagnostics.rs
Expand Up @@ -4677,6 +4677,6 @@ register_diagnostics! {
E0592, // duplicate definitions with name `{}`
// E0613, // Removed (merged with E0609)
E0627, // yield statement outside of generator literal
E0631, // cannot provide explicit type parameters when `impl Trait` is used in
E0632, // cannot provide explicit type parameters when `impl Trait` is used in
// argument position.
}

0 comments on commit 838105f

Please sign in to comment.