2 // Regression test for issue #21422, which was related to failing to
3 // add inference constraints that the operands of a binary operator
4 // should outlive the binary operation itself.
6 // pretty-expanded FIXME #23616
12 impl <'a> PartialEq for P<'a> {
13 fn eq(&self, other: &P<'a>) -> bool {
14 (self as *const _) == (other as *const _)