Adjust error message

This commit is contained in:
oddg 2020-06-15 21:28:50 -07:00
parent b5809b0272
commit f3dfe80ee1
2 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,6 @@ fn drop(&mut self) {
fn main() {
let e = E::A;
let i = e as u32;
//~^ ERROR Cast `enum` implementing `Drop` `E` to integer `u32`
//~^ ERROR cannot cast enum `E` into integer `u32` because it implements `Drop`
//~| WARN this was previously accepted
}

View File

@ -1,4 +1,4 @@
error: Cast `enum` implementing `Drop` `E` to integer `u32`
error: cannot cast enum `E` into integer `u32` because it implements `Drop`
--> $DIR/cenum_impl_drop_cast.rs:15:13
|
LL | let i = e as u32;