Sign in
fuchsia
/
third_party
/
rust
/
349c9eeb355a979c2e51f832d05ce9212f0aeeba
/
.
/
src
/
test
/
ui
/
nll
/
issue-55394.rs
blob: deb1034525edb6622bb754018c849764ef4db19d [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
struct
Bar
;
struct
Foo
<
'
s
>
{
bar
:
&
'
s
mut
Bar
,
}
impl
Foo
<
'
_
>
{
fn
new
(
bar
:
&
mut
Bar
)
->
Self
{
Foo
{
bar
}
//~ERROR lifetime may not live long enough
}
}
fn
main
()
{
}