summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/lifetime-elision-return-type-trait.rs
blob: 5168cb20d9ec423a1298b5c6eb6accbf205dcb85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
trait Future {
    type Item;
    type Error;
}

use std::error::Error;

fn foo() -> impl Future<Item=(), Error=Box<dyn Error>> {
    //~^ ERROR not satisfied
    Ok(())
}

fn main() {}