1 #![feature(const_fn, const_fn_union)]
11 const fn bar() -> u8 {
13 // This will error as long as this test is run on a system whose
14 // pointers need more than 8 bits.
15 Bar { a: &42 }.b as u8
20 // This will compile, but then hard-abort at runtime.
21 // FIXME(oli-obk): this should instead panic (not hard-abort) at runtime.
22 let x: &'static u8 = &(bar() + 1);
23 //~^ ERROR temporary value dropped while borrowed