mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
14 lines
247 B
Rust
14 lines
247 B
Rust
// Regression test for #51008 -- the anonymous lifetime in `&i32` was
|
|
// being incorrectly considered part of the "elided lifetimes" from
|
|
// the impl.
|
|
//
|
|
//@ check-pass
|
|
|
|
trait A {
|
|
|
|
}
|
|
|
|
impl<F> A for F where F: PartialEq<fn(&i32)> { }
|
|
|
|
fn main() {}
|