fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
680 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-52820.rs:9:9
3   |
4LL |         guts,
5   |         ^^^^
6   |         |
7   |         expected struct `std::string::String`, found `&str`
8   |         help: try using a conversion method: `guts: guts.to_string()`
9
10error[E0308]: mismatched types
11  --> $DIR/issue-52820.rs:10:17
12   |
13LL |         brains: guts.clone(),
14   |                 ^^^^^^^^^^^^
15   |                 |
16   |                 expected struct `std::string::String`, found `&str`
17   |                 help: try using a conversion method: `guts.to_string()`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.