]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/drop-track-bad-field-in-fru.stderr
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / ui / async-await / drop-track-bad-field-in-fru.stderr
1 error[E0559]: variant `Option<_>::None` has no field named `value`
2   --> $DIR/drop-track-bad-field-in-fru.rs:7:12
3    |
4 LL |     None { value: (), ..Default::default() }.await;
5    |            ^^^^^ `Option<_>::None` does not have this field
6
7 error[E0277]: `Option<_>` is not a future
8   --> $DIR/drop-track-bad-field-in-fru.rs:7:45
9    |
10 LL |     None { value: (), ..Default::default() }.await;
11    |                                             ^^^^^^
12    |                                             |
13    |                                             `Option<_>` is not a future
14    |                                             help: remove the `.await`
15    |
16    = help: the trait `Future` is not implemented for `Option<_>`
17    = note: Option<_> must be a future or must implement `IntoFuture` to be awaited
18    = note: required for `Option<_>` to implement `IntoFuture`
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0277, E0559.
23 For more information about an error, try `rustc --explain E0277`.