mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
15 lines
218 B
Rust
15 lines
218 B
Rust
#![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() {}
|