Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
}