Use a different error code to avoid conflicts
This commit is contained in:
parent
3730dfdaf5
commit
838105f09b
|
@ -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."
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue