fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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