Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
span
/
issue-36537.rs
blob: a5546ccbb602e87f972b7878f6afa4356ad74e2a [
file
] [
log
] [
blame
]
fn
main
()
{
let
p
;
{
let
a
=
42
;
p
=
&
a
;
//~^ ERROR `a` does not live long enough
}
p
.
use_ref
();
}
trait
Fake
{
fn
use_mut
(&
mut
self
)
{
}
fn
use_ref
(&
self
)
{
}
}
impl
<
T
>
Fake
for
T
{
}