]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/box-future-wrong-output.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / box-future-wrong-output.stderr
1 error[E0308]: mismatched types
2   --> $DIR/box-future-wrong-output.rs:20:39
3    |
4 LL |     let _: BoxFuture<'static, bool> = async {}.boxed();
5    |            ------------------------   ^^^^^^^^^^^^^^^^ expected `bool`, found `()`
6    |            |
7    |            expected due to this
8    |
9    = note: expected struct `Pin<Box<(dyn Future<Output = bool> + Send + 'static)>>`
10               found struct `Pin<Box<dyn Future<Output = ()> + Send>>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.