diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-03 21:13:13 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-08-03 21:26:54 -0400 |
| commit | 31fcda170a0671195b7a1506b09c5f655fc4d7e9 (patch) | |
| tree | 5483a71987fdb538dd066370d110fb944aaab6f5 /src/test/rustdoc-ui/error-in-impl-trait/async.rs | |
| parent | f042d749b0fc212bff6bdc44b84e134b878bff64 (diff) | |
| download | rust-31fcda170a0671195b7a1506b09c5f655fc4d7e9.tar.gz rust-31fcda170a0671195b7a1506b09c5f655fc4d7e9.zip | |
Fix async-std at the price of breaking half the test suite
- Don't mark impl trait as an error
Diffstat (limited to 'src/test/rustdoc-ui/error-in-impl-trait/async.rs')
| -rw-r--r-- | src/test/rustdoc-ui/error-in-impl-trait/async.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/rustdoc-ui/error-in-impl-trait/async.rs b/src/test/rustdoc-ui/error-in-impl-trait/async.rs index 112a2c494a5..cda53bff07a 100644 --- a/src/test/rustdoc-ui/error-in-impl-trait/async.rs +++ b/src/test/rustdoc-ui/error-in-impl-trait/async.rs @@ -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 } |
