Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-shorter_tail_lifetimes.rs
blob: 5292c44bb2d407f10d01397d6de6a56cc56c2cd3 [
file
] [
log
] [
blame
] [
edit
]
fn
f
()
->
usize
{
let
c
=
std
::
cell
::
RefCell
::
new
(
".."
);
c
.
borrow
().
len
()
//~ ERROR: `c` does not live long enough
}
fn
main
()
{
let
_
=
f
();
}