]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lub-glb/old-lub-glb-object.stderr
partially revert 904a0bde93f0348f69914ee90b1f8b6e4e0d7cbc
[rust.git] / src / test / ui / lub-glb / old-lub-glb-object.stderr
1 error[E0308]: match arms have incompatible types
2   --> $DIR/old-lub-glb-object.rs:12:14
3    |
4 LL |       let z = match 22 {
5    |  _____________-
6 LL | |         0 => x,
7    | |              - this is found to be of type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
8 LL | |         _ => y, //~ ERROR match arms have incompatible types
9    | |              ^ expected bound lifetime parameter 'a, found concrete lifetime
10 LL | |     };
11    | |_____- `match` arms have incompatible types
12    |
13    = note: expected type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
14               found type `&dyn for<'a> Foo<&'a u8, &'a u8>`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.