rust/tests/ui/explicit-tail-calls/return-lifetime-sub.rs
2024-02-16 20:02:50 +00:00

14 lines
187 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() {}