Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 69c6b2b

Browse files
authored
Tweak issue-79690 to trigger uncovered ICE (#625)
1 parent 76460fa commit 69c6b2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ices/79690.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ union Transmute<T: Copy, U: Copy> {
33
u: U,
44
}
55
trait Bar {
6-
fn bar(&self) -> u32;
6+
fn bar(&self) -> bool;
77
}
88
struct Foo {
9-
foo: u32,
9+
foo: bool,
1010
bar: bool,
1111
}
1212
impl Bar for Foo {
13-
fn bar(&self) -> u32 {
13+
fn bar(&self) -> bool {
1414
self.foo
1515
}
1616
}
@@ -20,7 +20,7 @@ struct VTable {
2020
size: Foo,
2121
}
2222
const FOO: &Bar = &Foo {
23-
foo: 128,
23+
foo: true,
2424
bar: false,
2525
};
2626
const G: Fat = unsafe { Transmute { t: FOO }.u };

0 commit comments

Comments
 (0)