We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40156e commit b5809b0Copy full SHA for b5809b0
src/librustc_typeck/check/cast.rs
@@ -755,7 +755,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
755
self.span,
756
|err| {
757
err.build(&format!(
758
- "Cast `enum` implementing `Drop` `{}` to integer `{}`",
+ "cannot cast enum `{}` into integer `{}` because it implements `Drop`",
759
self.expr_ty, self.cast_ty
760
))
761
.emit();
0 commit comments