blob: 92e5ea2f49df8cfd6b5ba251459e4e62e8f99e54 [file] [log] [blame]
// Test that multiple liftimes are allowed in impl trait types.
// build-pass (FIXME(62277): could be check-pass?)
trait X<'x>: Sized {}
impl<U> X<'_> for U {}
fn multiple_lifeteimes<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl X<'b> + 'a {
x
}
fn main() {}