]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-46756-consider-borrowing-cast-or-binexpr.stderr
index 1eeca3e75b003c720b97a11ccc6239f8472d72db..2d666e2b66c25ca05e546d33b5b6f58f42e1842d 100644 (file)
@@ -4,11 +4,8 @@ error[E0308]: mismatched types
 LL |     light_flows_our_war_of_mocking_words(behold as usize);
    |                                          ^^^^^^^^^^^^^^^
    |                                          |
-   |                                          expected &usize, found usize
+   |                                          expected `&usize`, found `usize`
    |                                          help: consider borrowing here: `&(behold as usize)`
-   |
-   = note: expected type `&usize`
-              found type `usize`
 
 error[E0308]: mismatched types
   --> $DIR/issue-46756-consider-borrowing-cast-or-binexpr.rs:14:42
@@ -16,11 +13,8 @@ error[E0308]: mismatched types
 LL |     light_flows_our_war_of_mocking_words(with_tears + 4);
    |                                          ^^^^^^^^^^^^^^
    |                                          |
-   |                                          expected &usize, found usize
+   |                                          expected `&usize`, found `usize`
    |                                          help: consider borrowing here: `&(with_tears + 4)`
-   |
-   = note: expected type `&usize`
-              found type `usize`
 
 error: aborting due to 2 previous errors