Skip to content

Commit 838105f

Browse files
committed
Use a different error code to avoid conflicts
1 parent 3730dfd commit 838105f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4892,7 +4892,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
48924892
let mut err = struct_span_err! {
48934893
self.tcx.sess,
48944894
span,
4895-
E0631,
4895+
E0632,
48964896
"cannot provide explicit type parameters when `impl Trait` is \
48974897
used in argument position."
48984898
};

src/librustc_typeck/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4677,6 +4677,6 @@ register_diagnostics! {
46774677
E0592, // duplicate definitions with name `{}`
46784678
// E0613, // Removed (merged with E0609)
46794679
E0627, // yield statement outside of generator literal
4680-
E0631, // cannot provide explicit type parameters when `impl Trait` is used in
4680+
E0632, // cannot provide explicit type parameters when `impl Trait` is used in
46814681
// argument position.
46824682
}

0 commit comments

Comments
 (0)