Skip to content

Commit

Permalink
Tweak issue-79690 to trigger uncovered ICE (rust-lang#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Jan 27, 2021
1 parent 76460fa commit 69c6b2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ices/79690.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ union Transmute<T: Copy, U: Copy> {
u: U,
}
trait Bar {
fn bar(&self) -> u32;
fn bar(&self) -> bool;
}
struct Foo {
foo: u32,
foo: bool,
bar: bool,
}
impl Bar for Foo {
fn bar(&self) -> u32 {
fn bar(&self) -> bool {
self.foo
}
}
Expand All @@ -20,7 +20,7 @@ struct VTable {
size: Foo,
}
const FOO: &Bar = &Foo {
foo: 128,
foo: true,
bar: false,
};
const G: Fat = unsafe { Transmute { t: FOO }.u };
Expand Down

0 comments on commit 69c6b2b

Please sign in to comment.