about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/error-in-impl-trait/async.rs
blob: 112a2c494a5c2a090a7b7b8660509ccdbf15de55 (plain)
1
2
3
4
5
6
7
8
9
10
// edition:2018

/// 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.
pub async fn a() -> u32 {
    error::_in::async_fn()
    //~^ ERROR failed to resolve
}