Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
field-in-sync.rs
blob: 586980c6e2be607e69dc7d35c138f6e2aa395cd9 [
file
] [
log
] [
blame
]
//@ 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
(())
}