15 lines
317 B
Rust
15 lines
317 B
Rust
|
use std::fmt::Debug;
|
||
|
|
||
|
fn a() -> impl Fn(&u8) -> impl Debug + '_ {
|
||
|
//~^ ERROR ambiguous `+` in a type
|
||
|
//~^^ ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
|
||
|
|x| x
|
||
|
}
|
||
|
|
||
|
fn b() -> impl Fn() -> impl Debug + Send {
|
||
|
//~^ ERROR ambiguous `+` in a type
|
||
|
|| ()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|