1 error[E0308]: mismatched types
2 --> $DIR/issue-61106.rs:3:9
7 | expected &str, found struct `std::string::String`
8 | help: consider borrowing here: `&x`
10 = note: expected type `&str`
11 found type `std::string::String`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0308`.