mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
17 lines
408 B
Rust
17 lines
408 B
Rust
#![feature(impl_trait_in_fn_trait_return)]
|
|
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
|
|
//~^ ERROR lifetime may not live long enough
|
|
}
|
|
|
|
fn b() -> impl Fn() -> impl Debug + Send {
|
|
//~^ ERROR ambiguous `+` in a type
|
|
|| ()
|
|
}
|
|
|
|
fn main() {}
|