fork/rust

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

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

master
791 B22 linesraw
1error[E0425]: cannot find value `u` in this scope
2  --> $DIR/issues-71798.rs:7:24
3   |
4LL |     let _ = test_ref & u;
5   |                        ^ not found in this scope
6
7error[E0277]: `u32` is not a future
8  --> $DIR/issues-71798.rs:1:25
9   |
10LL | fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
11   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u32` is not a future
12LL |
13LL |     *x
14   |     -- return type was inferred to be `u32` here
15   |
16   = help: the trait `Future` is not implemented for `u32`
17   = note: u32 must be a future or must implement `IntoFuture` to be awaited
18
19error: aborting due to 2 previous errors
20
21Some errors have detailed explanations: E0277, E0425.
22For more information about an error, try `rustc --explain E0277`.