]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lub-glb/old-lub-glb-object.stderr
kill old-style-lub warnings
[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:20:13
3    |
4 LL |       let z = match 22 { //~ ERROR incompatible types
5    |  _____________^
6 LL | |         0 => x,
7 LL | |         _ => y,
8    | |              - match arm with an incompatible type
9 LL | |     };
10    | |_____^ expected bound lifetime parameter 'a, found concrete lifetime
11    |
12    = note: expected type `&dyn for<'a, 'b> Foo<&'a u8, &'b u8>`
13               found type `&dyn for<'a> Foo<&'a u8, &'a u8>`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.