fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-61106.rs:3:9 3 | 4LL | foo(x.clone()); 5 | --- ^^^^^^^^^ expected `&str`, found `String` 6 | | 7 | arguments to this function are incorrect 8 | 9note: function defined here 10 --> $DIR/issue-61106.rs:6:4 11 | 12LL | fn foo(_: &str) {} 13 | ^^^ ------- 14help: consider borrowing here 15 | 16LL | foo(&x.clone()); 17 | + 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0308`.