blob: e3c1f0efaf00a0e7204baed6c44c0f4b89b9ce69 [file] [log] [blame] [edit]
// Test related to #22779, but where the `'a:'b` relation
// appears in the trait too. No error here.
//@ check-pass
trait Tr<'a, T> {
fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b;
}
impl<'a, T> Tr<'a, T> for &'a mut [T] {
fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b {
&mut self[..]
}
}
fn main() { }