Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-3154.rs
blob: 91c7203c1d002d5023b1be39e10ac39b12fc21fe [
file
] [
log
] [
blame
]
struct
Thing
<
'a, Q:'
a
>
{
x
:
&
'
a Q
}
fn
thing
<
'a,Q>(x: &Q) -> Thing<'
a
,
Q
>
{
Thing
{
x
:
x
}
//~ ERROR explicit lifetime required in the type of `x` [E0621]
}
fn
main
()
{
thing
(&());
}