blob: b62609e329dd3a3ea8a99f9e41bd8a33e81fad83 [file] [log] [blame]
// Regression test for #51008 -- the anonymous lifetime in `&i32` was
// being incorrectly considered part of the "elided lifetimes" from
// the impl.
//
// run-pass
#![feature(rust_2018_preview)]
trait A {
}
impl<F> A for F where F: FnOnce(&i32) {}
fn main() {}