Skip to content

Commit

Permalink
Adjust error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oddg committed Jun 16, 2020
1 parent b5809b0 commit f3dfe80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/cenum_impl_drop_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion src/test/ui/cenum_impl_drop_cast.stderr
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit f3dfe80

Please sign in to comment.