2022-07-28 15:18:32 -05:00
|
|
|
#![feature(impl_trait_in_fn_trait_return)]
|
2022-06-23 10:00:03 -05:00
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn a() -> impl Fn(&u8) -> impl Debug + '_ {
|
|
|
|
//~^ ERROR ambiguous `+` in a type
|
2022-10-25 11:10:19 -05:00
|
|
|
//~| ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
|
2022-06-23 10:00:03 -05:00
|
|
|
|x| x
|
2023-10-31 08:45:26 -05:00
|
|
|
//~^ ERROR lifetime may not live long enough
|
2022-06-23 10:00:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn b() -> impl Fn() -> impl Debug + Send {
|
|
|
|
//~^ ERROR ambiguous `+` in a type
|
|
|
|
|| ()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|