fork/rust

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

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

1.44.0
609 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/suggest-missing-await-closure.rs:16:18
3   |
4LL | async fn make_u32() -> u32 {
5   |                        --- the `Output` of this `async fn`'s found opaque type
6...
7LL |         take_u32(x)
8   |                  ^
9   |                  |
10   |                  expected `u32`, found opaque type
11   |                  help: consider using `.await` here: `x.await`
12   |
13   = note:     expected type `u32`
14           found opaque type `impl std::future::Future`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.