This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
static
/
static-lifetime-bound.rs
7 lines
109 B
Rust
Raw
Permalink
Blame
History
fn
f
<
'
a
:
'static
>
(
_
:
&
'
a
i32
)
{
}
fn
main
(
)
{
let
x
=
0
;
f
(
&
x
)
;
//~ERROR does not live long enough
}
Reference in New Issue
View Git Blame
Copy Permalink