]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lub-glb/old-lub-glb-object.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / lub-glb / old-lub-glb-object.stderr
index a31cd6f7a19008317fa838b7f4c6402f1db0315a..056f9131dd21cc7076ce8e9d6e903c06561b617a 100644 (file)
@@ -1,13 +1,14 @@
 error[E0308]: match arms have incompatible types
-  --> $DIR/old-lub-glb-object.rs:10:13
+  --> $DIR/old-lub-glb-object.rs:12:14
    |
-LL |       let z = match 22 { //~ ERROR match arms have incompatible types
-   |  _____________^
+LL |       let z = match 22 {
+   |  _____________-
 LL | |         0 => x,
-LL | |         _ => y,
-   | |              - match arm with an incompatible type
+   | |              - this is found to be of type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
+LL | |         _ => y, //~ ERROR match arms have incompatible types
+   | |              ^ expected bound lifetime parameter 'a, found concrete lifetime
 LL | |     };
-   | |_____^ expected bound lifetime parameter 'a, found concrete lifetime
+   | |_____- `match` arms have incompatible types
    |
    = note: expected type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
               found type `&dyn for<'a> Foo<&'a u8, &'a u8>`