1 error[E0308]: mismatched types
2 --> $DIR/issue-89856.rs:6:20
4 LL | take_str_maybe(option);
5 | ^^^^^^ expected `str`, found struct `String`
7 = note: expected enum `Option<&str>`
8 found enum `Option<&String>`
9 help: try converting the passed type into a `&str`
11 LL | take_str_maybe(option.map(|x| &**x));
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0308`.