blob: e04e6cf30b8feb474fa77fa8b70e6ac6fd816683 [file] [log] [blame] [edit]
// 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: FnOnce(&i32) {}
fn main() {}