1 // Test that we give a note when the old LUB/GLB algorithm would have
2 // succeeded but the new code (which is stricter) gives an error.
7 x: &for<'a, 'b> Foo<&'a u8, &'b u8>,
8 y: &for<'a> Foo<&'a u8, &'a u8>,
12 _ => y, //~ ERROR match arms have incompatible types
17 x: &for<'a, 'b> Foo<&'a u8, &'b u8>,
18 y: &for<'a> Foo<&'a u8, &'a u8>,
20 // Accepted with explicit case:
22 0 => x as &for<'a> Foo<&'a u8, &'a u8>,