Update src/librustc_typeck/check/cast.rs
Co-authored-by: lzutao <taolzu@gmail.com>
This commit is contained in:
parent
a40156e5b7
commit
b5809b0272
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
|
|||
self.span,
|
||||
|err| {
|
||||
err.build(&format!(
|
||||
"Cast `enum` implementing `Drop` `{}` to integer `{}`",
|
||||
"cannot cast enum `{}` into integer `{}` because it implements `Drop`",
|
||||
self.expr_ty, self.cast_ty
|
||||
))
|
||||
.emit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue