]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-38940.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-38940.stderr
index 4851c01a347b6965da8caa01fd266528bb9330d7..f60387f841aed9766c50f78d3fac3815fc70a04b 100644 (file)
@@ -10,10 +10,12 @@ error[E0308]: mismatched types
   --> $DIR/issue-38940.rs:43:22
    |
 LL |     let x: &Bottom = &t;
-   |                      ^^ expected struct `Bottom`, found struct `Top`
+   |            -------   ^^ expected struct `Bottom`, found struct `Top`
+   |            |
+   |            expected due to this
    |
-   = note: expected type `&Bottom`
-              found type `&Top`
+   = note: expected reference `&Bottom`
+              found reference `&Top`
 
 error: aborting due to 2 previous errors