Skip to content

Commit

Permalink
Update src/librustc_typeck/check/cast.rs
Browse files Browse the repository at this point in the history
Co-authored-by: lzutao <taolzu@gmail.com>
  • Loading branch information
nikomatsakis and tesuji committed Jun 15, 2020
1 parent a40156e commit b5809b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/cast.rs
Expand Up @@ -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();
Expand Down

0 comments on commit b5809b0

Please sign in to comment.