1 error[E0308]: mismatched types
2 --> $DIR/closure-return-type-mismatch.rs:7:9
5 | ^ expected `&str`, found `bool`
7 note: return type inferred to be `&str` here
8 --> $DIR/closure-return-type-mismatch.rs:4:20
13 error[E0308]: mismatched types
14 --> $DIR/closure-return-type-mismatch.rs:12:20
17 | ^^^^^^^ expected `bool`, found `&str`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.