Skip to content

Commit f3dfe80

Browse files
committed
Adjust error message
1 parent b5809b0 commit f3dfe80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/cenum_impl_drop_cast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ impl Drop for E {
1313
fn main() {
1414
let e = E::A;
1515
let i = e as u32;
16-
//~^ ERROR Cast `enum` implementing `Drop` `E` to integer `u32`
16+
//~^ ERROR cannot cast enum `E` into integer `u32` because it implements `Drop`
1717
//~| WARN this was previously accepted
1818
}

src/test/ui/cenum_impl_drop_cast.stderr

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

0 commit comments

Comments
 (0)