]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | // Regression test for #51008 -- the anonymous lifetime in `&i32` was |
2 | // being incorrectly considered part of the "elided lifetimes" from | |
3 | // the impl. | |
4 | // | |
5 | // run-pass | |
6 | ||
7 | #![feature(rust_2018_preview)] | |
8 | ||
9 | trait A { | |
1a4d82fc | 10 | |
83c7162d | 11 | } |
9e0c209e | 12 | |
94b46f34 | 13 | impl<F> A for F where F: PartialEq<fn(&i32)> { } |
83c7162d | 14 | |
94b46f34 | 15 | fn main() {} |