Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
rfc-2093-infer-outlives
/
explicit-union.rs
blob: ea8a3c177e9d7f77dd202b8dced545200e861400 [
file
] [
log
] [
blame
]
#![
feature
(
rustc_attrs
)]
#![
feature
(
untagged_unions
)]
#[
rustc_outlives
]
union
Foo
<
'
b
,
U
:
Copy
>
{
//~ ERROR rustc_outlives
bar
:
Bar
<
'
b
,
U
>
}
union
Bar
<
'a, T: Copy> where T: '
a
{
x
:
&
'
a
(),
y
:
T
,
}
fn
main
()
{}