fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB25 linesraw
1error[E0559]: variant `Option<_>::None` has no field named `value`
2  --> $DIR/drop-track-bad-field-in-fru.rs:6:12
3   |
4LL |     None { value: (), ..Default::default() }.await;
5   |            ^^^^^ `Option<_>::None` does not have this field
6   |
7   = note: all struct fields are already assigned
8
9error[E0277]: `Option<_>` is not a future
10  --> $DIR/drop-track-bad-field-in-fru.rs:6:46
11   |
12LL |     None { value: (), ..Default::default() }.await;
13   |                                             -^^^^^
14   |                                             ||
15   |                                             |`Option<_>` is not a future
16   |                                             help: remove the `.await`
17   |
18   = help: the trait `Future` is not implemented for `Option<_>`
19   = note: Option<_> must be a future or must implement `IntoFuture` to be awaited
20   = note: required for `Option<_>` to implement `IntoFuture`
21
22error: aborting due to 2 previous errors
23
24Some errors have detailed explanations: E0277, E0559.
25For more information about an error, try `rustc --explain E0277`.