2018-05-30 09:40:42 -05:00
|
|
|
// Regression test for #51008 -- the anonymous lifetime in `&i32` was
|
|
|
|
// being incorrectly considered part of the "elided lifetimes" from
|
|
|
|
// the impl.
|
|
|
|
//
|
2024-02-06 20:42:01 -06:00
|
|
|
//@ check-pass
|
2018-05-30 09:40:42 -05:00
|
|
|
|
|
|
|
trait A {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<F> A for F where F: PartialEq<fn(&i32)> { }
|
|
|
|
|
|
|
|
fn main() {}
|