rust/tests/ui/suggestions/issue-52820.stderr
Esteban Küber 62ba3e70a1 Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00

24 lines
660 B
Plaintext

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