fork/rust

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

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

master
719 B20 linesraw
1error[E0382]: use of moved value: `f`
2  --> $DIR/clone-suggestion.rs:24:5
3   |
4LL |     let f = SharedFuture;
5   |         - move occurs because `f` has type `SharedFuture`, which does not implement the `Copy` trait
6LL |     f.await;
7   |       ----- `f` moved due to this await
8LL |     f.await;
9   |     ^ value used here after move
10   |
11note: `into_future` takes ownership of the receiver `self`, which moves `f`
12  --> $SRC_DIR/core/src/future/into_future.rs:LL:COL
13help: you can `clone` the value and consume it, but this might not be your desired behavior
14   |
15LL |     f.clone().await;
16   |      ++++++++
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0382`.