1 // Test that we give a note when the old LUB/GLB algorithm would have
2 // succeeded but the new code (which requires equality) gives an
3 // error. However, now that we handle subtyping correctly, we no
4 // longer get an error, because we recognize these two types as
7 // Whoops -- now that we reinstituted the leak-check, we get an error
12 y: for<'a> fn(&'a u8, &'a u8),
16 _ => y, //~ ERROR `match` arms have incompatible types
22 y: for<'a> fn(&'a u8, &'a u8),
25 // No error with an explicit cast:
26 0 => x as for<'a> fn(&'a u8, &'a u8),