Sign in
fuchsia
/
third_party
/
rust
/
0.8
/
.
/
src
/
test
/
compile-fail
/
die-not-static.rs
blob: 40a4232717db2af5088138d4cbeef24d43df3e45 [
file
]
use
std
::
str
;
fn
main
()
{
let
v
=
~
"test"
;
let
sslice
=
v
.
slice
(
0
,
v
.
len
());
//~^ ERROR borrowed value does not live long enough
fail
!(
sslice
);
}