1 error[E0308]: mismatched types
2 --> $DIR/issue-99914.rs:9:27
4 LL | t.and_then(|t| -> _ { bar(t) });
5 | ^^^^^^ expected `Result<_, Error>`, found opaque type
7 = note: expected enum `Result<_, Error>`
8 found opaque type `impl Future<Output = ()>`
9 help: try wrapping the expression in `Ok`
11 LL | t.and_then(|t| -> _ { Ok(bar(t)) });
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0308`.