error[E0308]: mismatched types --> $DIR/estr-subtyping.rs:10:15 | LL | wants_uniq(x); | ---------- ^- help: try using a conversion method: `.to_string()` | | | | | expected struct `String`, found `&str` | arguments to this function are incorrect | note: function defined here --> $DIR/estr-subtyping.rs:1:4 | LL | fn wants_uniq(x: String) { } | ^^^^^^^^^^ --------- error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.