Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
rfc-2093-infer-outlives
/
explicit-union.rs
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
()
{}