Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-3154.rs
blob: 91c7203c1d002d5023b1be39e10ac39b12fc21fe [
file
] [
log
] [
blame
] [
edit
]
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
(&());
}