mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
339 B
Rust
17 lines
339 B
Rust
// 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() { }
|