]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-99914.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / impl-trait / issue-99914.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-99914.rs:9:27
3    |
4 LL |     t.and_then(|t| -> _ { bar(t) });
5    |                           ^^^^^^ expected `Result<_, Error>`, found opaque type
6    |
7    = note:     expected enum `Result<_, Error>`
8            found opaque type `impl Future<Output = ()>`
9 help: try wrapping the expression in `Ok`
10    |
11 LL |     t.and_then(|t| -> _ { Ok(bar(t)) });
12    |                           +++      +
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.