rust/src/test/ui/issues/issue-28999.rs
2018-12-25 21:08:33 -07:00

12 lines
213 B
Rust

// compile-pass
pub struct Xyz<'a, V> {
pub v: (V, &'a u32),
}
pub fn eq<'a, 's, 't, V>(this: &'s Xyz<'a, V>, other: &'t Xyz<'a, V>) -> bool
where V: PartialEq {
this.v == other.v
}
fn main() {}