Adjust error message
This commit is contained in:
parent
b5809b0272
commit
f3dfe80ee1
2 changed files with 2 additions and 2 deletions
|
@ -13,6 +13,6 @@ impl Drop for E {
|
|||
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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue