rust/tests/ui/explicit-tail-calls/return-lifetime-sub.rs

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

14 lines
187 B
Rust
Raw Normal View History

2022-11-21 06:40:27 -06:00
//@ check-pass
#![allow(incomplete_features)]
#![feature(explicit_tail_calls)]
fn _f<'a>() -> &'a [u8] {
become _g();
}
fn _g() -> &'static [u8] {
&[0, 1, 2, 3]
}
fn main() {}