]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/issue-52820.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-52820.stderr
index 7b465844501927b63255fc4875c9abb0a41f84a0..09269ed4eee9983d6b2b605ac796e8162b712635 100644 (file)
@@ -1,5 +1,5 @@
 error[E0308]: mismatched types
-  --> $DIR/issue-52820.rs:9:9
+  --> $DIR/issue-52820.rs:12:9
    |
 LL |         guts,
    |         ^^^^ expected struct `String`, found `&str`
@@ -10,13 +10,13 @@ LL |         guts: guts.to_string(),
    |         +++++     ++++++++++++
 
 error[E0308]: mismatched types
-  --> $DIR/issue-52820.rs:10:17
+  --> $DIR/issue-52820.rs:13:17
    |
 LL |         brains: guts.clone(),
-   |                 ^^^^^^^^^^^^
-   |                 |
+   |                 ^^^^^-----^^
+   |                 |    |
+   |                 |    help: try using a conversion method: `to_string`
    |                 expected struct `String`, found `&str`
-   |                 help: try using a conversion method: `guts.to_string()`
 
 error: aborting due to 2 previous errors