summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2093-infer-outlives/explicit-union.rs
blob: 871208b5ba7859a0b5e2b0831d7ed4c3585f6d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(rustc_attrs)]

#[rustc_outlives]
union Foo<'b, U: Copy> { //~ ERROR rustc_outlives
    bar: Bar<'b, U>
}

#[derive(Clone, Copy)]
union Bar<'a, T: Copy> where T: 'a {
    x: &'a (),
    y: T,
}

fn main() {}