rust/tests/ui/rust-2018/issue-51008-1.rs
2023-12-10 13:03:28 -08:00

14 lines
244 B
Rust

// Regression test for #51008 -- the anonymous lifetime in `&i32` was
// being incorrectly considered part of the "elided lifetimes" from
// the impl.
//
// run-pass
trait A {
}
impl<F> A for F where F: PartialEq<fn(&i32)> { }
fn main() {}