]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues-71798.stderr
rustdoc: Early doc link resolution fixes and refactorings
[rust.git] / src / test / ui / issues-71798.stderr
1 error[E0425]: cannot find value `u` in this scope
2   --> $DIR/issues-71798.rs:8:24
3    |
4 LL |     let _ = test_ref & u;
5    |                        ^ not found in this scope
6
7 error[E0277]: `u32` is not a future
8   --> $DIR/issues-71798.rs:1:25
9    |
10 LL | fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
11    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u32` is not a future
12    |
13    = help: the trait `Future` is not implemented for `u32`
14    = note: u32 must be a future or must implement `IntoFuture` to be awaited
15
16 error[E0277]: `u32` is not a future
17   --> $DIR/issues-71798.rs:1:69
18    |
19 LL |   fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
20    |  _____________________________________________________________________^
21 LL | |
22 LL | |
23 LL | |     *x
24 LL | | }
25    | |_^ `u32` is not a future
26    |
27    = help: the trait `Future` is not implemented for `u32`
28    = note: u32 must be a future or must implement `IntoFuture` to be awaited
29
30 error: aborting due to 3 previous errors
31
32 Some errors have detailed explanations: E0277, E0425.
33 For more information about an error, try `rustc --explain E0277`.