Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
rfc-2093-infer-outlives
/
nested-union.rs
blob: 0da3cc2ba1b0434c363c2c8503066ef878e03840 [
file
] [
log
] [
blame
]
#![
feature
(
rustc_attrs
)]
#![
feature
(
untagged_unions
)]
#[
rustc_outlives
]
union
Foo
<
'
a
,
T
:
Copy
>
{
//~ ERROR rustc_outlives
field1
:
Bar
<
'
a
,
T
>
}
// Type U needs to outlive lifetime 'b
union
Bar
<
'
b
,
U
:
Copy
>
{
field2
:
&
'
b U
}
fn
main
()
{}