Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
static
/
static-lifetime-bound.rs
blob: b5da91ec3b6b0e13598e77bd1729789b3ed43cd7 [
file
] [
log
] [
blame
]
fn
f
<
'a: '
static
>(
_
:
&
'a i32) {} //~WARN unnecessary lifetime parameter `'
a
`
fn
main
()
{
let
x
=
0
;
f
(&
x
);
//~ERROR does not live long enough
}