mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
14 lines
207 B
Rust
14 lines
207 B
Rust
//@ 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(())
|
|
}
|