2020-05-02 19:50:57 +00:00
|
|
|
error[E0425]: cannot find value `u` in this scope
|
2022-04-28 13:25:36 +00:00
|
|
|
--> $DIR/issues-71798.rs:7:24
|
2020-05-02 19:50:57 +00:00
|
|
|
|
|
|
|
|
LL | let _ = test_ref & u;
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
2020-06-18 17:30:47 +00:00
|
|
|
error[E0277]: `u32` is not a future
|
2022-02-16 15:48:46 +00:00
|
|
|
--> $DIR/issues-71798.rs:1:25
|
2020-05-02 19:50:57 +00:00
|
|
|
|
|
2022-02-16 15:48:46 +00:00
|
|
|
LL | fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u32` is not a future
|
2022-06-07 06:20:13 +00:00
|
|
|
LL |
|
|
|
|
LL | *x
|
|
|
|
| -- return type was inferred to be `u32` here
|
2020-05-02 19:50:57 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Future` is not implemented for `u32`
|
2021-12-03 00:12:25 +00:00
|
|
|
= note: u32 must be a future or must implement `IntoFuture` to be awaited
|
2020-05-02 19:50:57 +00:00
|
|
|
|
2022-04-28 13:25:36 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2020-05-02 19:50:57 +00:00
|
|
|
|
|
|
|
Some errors have detailed explanations: E0277, E0425.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|