fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: `match` arms have incompatible types 2 --> $DIR/old-lub-glb-hr-noteq2.rs:25:14 3 | 4LL | let z = match 22 { 5 | _____________- 6LL | | 0 => y, 7 | | - this is found to be of type `for<'a> fn(&'a u8, &'a u8) -> &'a u8` 8LL | | _ => x, 9 | | ^ one type is more general than the other 10LL | | 11LL | | }; 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 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0308`.