2022-03-16 07:12:30 -05:00
|
|
|
// Test that multiple lifetimes are allowed in impl trait types.
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-05-17 17:01:53 -05:00
|
|
|
|
|
|
|
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() {}
|