Skip to content

Commit b5809b0

Browse files
nikomatsakistesuji
andauthored
Update src/librustc_typeck/check/cast.rs
Co-authored-by: lzutao <[email protected]>
1 parent a40156e commit b5809b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
755755
self.span,
756756
|err| {
757757
err.build(&format!(
758-
"Cast `enum` implementing `Drop` `{}` to integer `{}`",
758+
"cannot cast enum `{}` into integer `{}` because it implements `Drop`",
759759
self.expr_ty, self.cast_ty
760760
))
761761
.emit();

0 commit comments

Comments
 (0)