blob: 2370084b072c7c070b3667901d2e819fb004a5e6 [file] [log] [blame]
trait Future {
type Item;
type Error;
}
use std::error::Error;
fn foo() -> impl Future<Item=(), Error=Box<dyn Error>> {
//~^ ERROR missing lifetime
Ok(())
}
fn main() {}