summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-61106.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-61106.stderr')
-rw-r--r--tests/ui/issues/issue-61106.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/issues/issue-61106.stderr b/tests/ui/issues/issue-61106.stderr
index eff3e6e78..aa922e268 100644
--- a/tests/ui/issues/issue-61106.stderr
+++ b/tests/ui/issues/issue-61106.stderr
@@ -2,10 +2,8 @@ error[E0308]: mismatched types
--> $DIR/issue-61106.rs:3:9
|
LL | foo(x.clone());
- | --- ^^^^^^^^^
- | | |
- | | expected `&str`, found `String`
- | | help: consider borrowing here: `&x`
+ | --- ^^^^^^^^^ expected `&str`, found `String`
+ | |
| arguments to this function are incorrect
|
note: function defined here
@@ -13,6 +11,10 @@ note: function defined here
|
LL | fn foo(_: &str) {}
| ^^^ -------
+help: consider borrowing here
+ |
+LL | foo(&x.clone());
+ | +
error: aborting due to previous error