summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/drop-track-bad-field-in-fru.rs
blob: 667b288e676df6ef9d50167ef2615fb6835764a9 (plain)
1
2
3
4
5
6
7
8
9
// edition: 2021

fn main() {}

async fn foo() {
    None { value: (), ..Default::default() }.await;
    //~^ ERROR `Option<_>` is not a future
    //~| ERROR variant `Option<_>::None` has no field named `value`
}