fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
664 B18 linesraw
1error[E0308]: match arms have incompatible types
2  --> $DIR/old-lub-glb-object.rs:12:14
3   |
4LL |       let z = match 22 {
5   |  _____________-
6LL | |         0 => x,
7   | |              - this is found to be of type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
8LL | |         _ => y,
9   | |              ^ expected bound lifetime parameter 'a, found concrete lifetime
10LL | |     };
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
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.