blob: a16fb7670a60346fdc653a28968b4f1b5d545bb5 [file] [log] [blame]
#![feature(rustc_attrs)]
#![feature(untagged_unions)]
#![allow(unions_with_drop_fields)]
#[rustc_outlives]
union Foo<'b, U> { //~ ERROR rustc_outlives
bar: Bar<'b, U>
}
union Bar<'a, T> where T: 'a {
x: &'a (),
y: T,
}
fn main() {}