2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-02-12 11:48:54 -06:00
|
|
|
// Regression test for issue #21422, which was related to failing to
|
|
|
|
// add inference constraints that the operands of a binary operator
|
|
|
|
// should outlive the binary operation itself.
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-12 11:48:54 -06:00
|
|
|
pub struct P<'a> {
|
|
|
|
_ptr: *const &'a u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl <'a> PartialEq for P<'a> {
|
|
|
|
fn eq(&self, other: &P<'a>) -> bool {
|
|
|
|
(self as *const _) == (other as *const _)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|