fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
844 B27 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   |
10   = note: expected type `std::string::String`
11              found type `&str`
12
13error[E0308]: mismatched types
14  --> $DIR/issue-52820.rs:10:17
15   |
16LL |         brains: guts.clone(),
17   |                 ^^^^^^^^^^^^
18   |                 |
19   |                 expected struct `std::string::String`, found &str
20   |                 help: try using a conversion method: `guts.to_string()`
21   |
22   = note: expected type `std::string::String`
23              found type `&str`
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0308`.