about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/return-lifetime-sub.rs
blob: df0982cc02bdc2c92fbb4598da9a56ebd1bf0a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]

fn _f<'a>() -> &'a [u8] {
    become _g();
}

fn _g() -> &'static [u8] {
    &[0, 1, 2, 3]
}

fn main() {}