]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-elision-return-type-trait.rs
Rollup merge of #55343 - Keruspe:remap-debuginfo-release, r=alexcrichton
[rust.git] / src / test / ui / lifetimes / lifetime-elision-return-type-trait.rs
1 trait Future {
2     type Item;
3     type Error;
4 }
5
6 use std::error::Error;
7
8 fn foo() -> impl Future<Item=(), Error=Box<Error>> {
9     Ok(())
10 }
11
12 fn main() {}