From 69c6b2b51c17a17dc9729214044f051e6c5dad3c Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 28 Jan 2021 05:04:43 +0900 Subject: [PATCH] Tweak issue-79690 to trigger uncovered ICE (#625) --- ices/79690.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ices/79690.rs b/ices/79690.rs index 0a3eeb3a..b0e9bc04 100644 --- a/ices/79690.rs +++ b/ices/79690.rs @@ -3,14 +3,14 @@ union Transmute { 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 } } @@ -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 };