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