]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-52820.stderr
Rollup merge of #107559 - WaffleLapkin:is_it_2015¿, r=davidtwco
[rust.git] / tests / ui / suggestions / issue-52820.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-52820.rs:12:9
3    |
4 LL |         guts,
5    |         ^^^^ expected `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:13:17
14    |
15 LL |         brains: guts.clone(),
16    |                 ^^^^^-----^^
17    |                 |    |
18    |                 |    help: try using a conversion method: `to_string`
19    |                 expected `String`, found `&str`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.