diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-28999.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-28999.rs b/src/test/ui/issues/issue-28999.rs new file mode 100644 index 000000000..cec3e25da --- /dev/null +++ b/src/test/ui/issues/issue-28999.rs @@ -0,0 +1,11 @@ +// 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() {} |