]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-52820.stderr
Auto merge of #65129 - andjo403:cargo_args, r=alexcrichton
[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    |         ^^^^
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
13 error[E0308]: mismatched types
14   --> $DIR/issue-52820.rs:10:17
15    |
16 LL |         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
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.