]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/copy-a-resource.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / copy-a-resource.stderr
index 128087f1e375522297267296a093509774bb30e1..b92449c6e0aff6776e77d51a8efcc9a96e22b265 100644 (file)
@@ -10,6 +10,10 @@ LL |     let _y = x.clone();
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `clone`, perhaps you need to implement it:
            candidate #1: `Clone`
+help: one of the expressions' fields has a method of the same name
+   |
+LL |     let _y = x.i.clone();
+   |                ++
 
 error: aborting due to previous error