]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-52820.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / issue-52820.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-52820.rs:9:9
3    |
4 LL |         guts,
5    |         ^^^^ expected struct `String`, found `&str`
6    |
7 help: try using a conversion method
8    |
9 LL |         guts: guts.to_string(),
10    |         +++++     ++++++++++++
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-52820.rs:10:17
14    |
15 LL |         brains: guts.clone(),
16    |                 ^^^^^^^^^^^^
17    |                 |
18    |                 expected struct `String`, found `&str`
19    |                 help: try using a conversion method: `guts.to_string()`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.