mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
16 lines
268 B
Rust
16 lines
268 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
|
||
|
|
||
|
#![feature(rust_2018_preview)]
|
||
|
|
||
|
trait A {
|
||
|
|
||
|
}
|
||
|
|
||
|
impl<F> A for F where F: FnOnce(&i32) {}
|
||
|
|
||
|
fn main() {}
|