]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/issue-52820.rs:9:9 | |
3 | | | |
4 | LL | guts, | |
5 | | ^^^^ | |
6 | | | | |
60c5eb7d | 7 | | expected struct `std::string::String`, found `&str` |
dc9dc135 | 8 | | help: try using a conversion method: `guts: guts.to_string()` |
dc9dc135 XL |
9 | |
10 | error[E0308]: mismatched types | |
11 | --> $DIR/issue-52820.rs:10:17 | |
12 | | | |
13 | LL | brains: guts.clone(), | |
14 | | ^^^^^^^^^^^^ | |
15 | | | | |
60c5eb7d | 16 | | expected struct `std::string::String`, found `&str` |
dc9dc135 | 17 | | help: try using a conversion method: `guts.to_string()` |
dc9dc135 XL |
18 | |
19 | error: aborting due to 2 previous errors | |
20 | ||
21 | For more information about this error, try `rustc --explain E0308`. |