1
Fork 0

Update src/librustc_typeck/check/cast.rs

Co-authored-by: lzutao <taolzu@gmail.com>
This commit is contained in:
Niko Matsakis 2020-06-15 12:12:22 -04:00 committed by GitHub
parent a40156e5b7
commit b5809b0272
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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