rust/tests/ui/suggestions/issue-52820.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
660 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2022-07-10 17:19:45 +00:00
--> $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
2022-07-10 17:19:45 +00:00
--> $DIR/issue-52820.rs:13:17
|
LL | brains: guts.clone(),
2022-07-10 17:19:45 +00:00
| ^^^^^-----^^
| | |
| | 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`.