Sign in
fuchsia
/
third_party
/
rust
/
d38d6be336e87055d90375c981806d5d133f446a
/
.
/
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
()
{
}