Fix async-std at the price of breaking half the test suite

- Don't mark impl trait as an error
This commit is contained in:
Joshua Nelson 2020-08-03 21:13:13 -04:00
parent f042d749b0
commit 31fcda170a
17 changed files with 29 additions and 119 deletions

View file

@ -1,10 +1,7 @@
// edition:2018
// check-pass
/// This used to work with ResolveBodyWithLoop.
/// However now that we ignore type checking instead of modifying the function body,
/// the return type is seen as `impl Future<Output = u32>`, not a `u32`.
/// So it no longer allows errors in the function body.
/// Should compile fine
pub async fn a() -> u32 {
error::_in::async_fn()
//~^ ERROR failed to resolve
}