os-rust/tests/ui/feature-gates/feature-gate-shorter_tail_lifetimes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
157 B
Rust
Raw Normal View History

fn f() -> usize {
let c = std::cell::RefCell::new("..");
c.borrow().len() //~ ERROR: `c` does not live long enough
}
fn main() {
let _ = f();
}