]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lub-glb/old-lub-glb-hr-noteq2.leak.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lub-glb / old-lub-glb-hr-noteq2.leak.stderr
1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/old-lub-glb-hr-noteq2.rs:25:14
3 |
4 LL | let z = match 22 {
5 | _____________-
6 LL | | 0 => y,
7 | | - this is found to be of type `for<'a> fn(&'a u8, &'a u8) -> &'a u8`
8 LL | | _ => x,
9 | | ^ one type is more general than the other
10 LL | |
11 LL | | };
12 | |_____- `match` arms have incompatible types
13 |
14 = note: expected fn pointer `for<'a> fn(&'a u8, &'a u8) -> &'a u8`
15 found fn pointer `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.