rust/tests/ui/explicit-tail-calls/return-lifetime-sub.rs
2023-06-26 08:56:32 +00:00

14 lines
186 B
Rust

// 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() {}