2022-07-28 15:18:32 -05:00
|
|
|
#![feature(impl_trait_in_fn_trait_return)]
|
2022-06-23 10:12:13 -05:00
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
|
|
|
|
|x| x
|
2024-03-18 11:03:18 -05:00
|
|
|
//~^ ERROR expected generic lifetime parameter, found `'_`
|
2022-06-23 10:12:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn _b<'a>() -> impl Fn(&'a u8) -> (impl Debug + 'a) {
|
|
|
|
a()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|