rust/src/test/ui/suggestions/issue-52820.stderr
Esteban Küber 99f2977031 Modify structured suggestion output
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
2021-08-11 09:46:24 +00:00

24 lines
670 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-52820.rs:9:9
|
LL | guts,
| ^^^^ expected struct `String`, found `&str`
|
help: try using a conversion method
|
LL | guts: guts.to_string(),
| +++++ ++++++++++++
error[E0308]: mismatched types
--> $DIR/issue-52820.rs:10:17
|
LL | brains: guts.clone(),
| ^^^^^^^^^^^^
| |
| expected struct `String`, found `&str`
| help: try using a conversion method: `guts.to_string()`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.