2022-07-29 00:18:32 +04:00
|
|
|
#![feature(impl_trait_in_fn_trait_return)]
|
2022-06-23 19:00:03 +04:00
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn a() -> impl Fn(&u8) -> impl Debug + '_ {
|
|
|
|
//~^ ERROR ambiguous `+` in a type
|
2022-10-25 16:10:19 +00:00
|
|
|
//~| ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
|
2022-06-23 19:00:03 +04:00
|
|
|
|x| x
|
|
|
|
}
|
|
|
|
|
|
|
|
fn b() -> impl Fn() -> impl Debug + Send {
|
|
|
|
//~^ ERROR ambiguous `+` in a type
|
|
|
|
|| ()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|