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