]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-61106.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-61106.stderr
index 2d841d28ee26d8aa478d7fb38592f77df71cdf30..2bc09234116b1171e2465b4492771242473480bc 100644 (file)
@@ -2,10 +2,17 @@ error[E0308]: mismatched types
   --> $DIR/issue-61106.rs:3:9
    |
 LL |     foo(x.clone());
-   |         ^^^^^^^^^
-   |         |
-   |         expected `&str`, found struct `String`
-   |         help: consider borrowing here: `&x`
+   |     --- ^^^^^^^^^
+   |     |   |
+   |     |   expected `&str`, found struct `String`
+   |     |   help: consider borrowing here: `&x`
+   |     arguments to this function are incorrect
+   |
+note: function defined here
+  --> $DIR/issue-61106.rs:6:4
+   |
+LL | fn foo(_: &str) {}
+   |    ^^^ -------
 
 error: aborting due to previous error