]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/issue-51008.rs
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / issue-51008.rs
1 // Regression test for #51008 -- the anonymous lifetime in `&i32` was
2 // being incorrectly considered part of the "elided lifetimes" from
3 // the impl.
4 //
5 // run-pass
6
7 #![feature(rust_2018_preview)]
8
9 trait A {
10
11 }
12
13 impl<F> A for F where F: FnOnce(&i32) {}
14
15 fn main() {}