1 error[E0308]: mismatched types
2 --> $DIR/estr-subtyping.rs:10:15
7 | expected struct `std::string::String`, found &str
8 | help: try using a conversion method: `x.to_string()`
10 = note: expected type `std::string::String`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0308`.