Closed
Description
This code:
#![feature(rust_2018_preview)]
trait A {
}
impl<F> A for F where F: FnOnce(&i32) {}
fn main() {}
error[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders
--> src/main.rs:7:33
|
7 | impl<F> A for F where F: FnOnce(&i32) {}
| ^ in-band lifetime definition
error: aborting due to previous error
For more information about this error, try `rustc --explain E0687`.