1 error[E0308]: mismatched types
2 --> $DIR/issue-61106.rs:3:9
7 | | expected `&str`, found struct `String`
8 | | help: consider borrowing here: `&x`
9 | arguments to this function are incorrect
11 note: function defined here
12 --> $DIR/issue-61106.rs:6:4
14 LL | fn foo(_: &str) {}
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.