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
|
|
|
|
}
|
|
|
|
|
|
|
|
fn b() -> impl Fn() -> impl Debug + Send {
|
|
|
|
//~^ ERROR ambiguous `+` in a type
|
|
|
|
|| ()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|