blob: 586980c6e2be607e69dc7d35c138f6e2aa395cd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ edition: 2021
struct S {
field: (),
}
async fn foo() -> S { todo!() }
fn main() -> Result<(), ()> {
foo().field;
//~^ ERROR no field `field` on type `impl Future<Output = S>`
Ok(())
}
|