]> git.lizzy.rs Git - rust.git/blob - tests/ui/lub-glb/old-lub-glb-hr-noteq1.baseleak.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / lub-glb / old-lub-glb-hr-noteq1.baseleak.stderr
1 error[E0308]: `match` arms have incompatible types
2   --> $DIR/old-lub-glb-hr-noteq1.rs:17:14
3    |
4 LL |       let z = match 22 {
5    |  _____________-
6 LL | |         0 => x,
7    | |              - this is found to be of type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
8 LL | |         _ => y,
9    | |              ^ one type is more general than the other
10 LL | |
11 ...  |
12 LL | |
13 LL | |     };
14    | |_____- `match` arms have incompatible types
15    |
16    = note: expected fn pointer `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
17               found fn pointer `for<'a> fn(&'a u8, &'a u8) -> &'a u8`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.