blob: 7beb2db3969c8c1d055de34781f76ceb2eced49e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  | 
// edition:2018
#![feature(impl_trait_in_bindings)]
//~^ WARN the feature `impl_trait_in_bindings` is incomplete
use std::io::Error;
fn make_unit() -> Result<(), Error> {
    Ok(())
}
fn main() {
    let fut = async {
        make_unit()?;
        Ok(()) //~ ERROR type annotations needed
    };
}
 
  |