We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
identity
use std::convert::identity; fn foo<F: for<'a> FnOnce(&'a ()) -> &'a ()>(f: F) { f(&()); } fn main() { //foo(identity(|x| x)); foo(|x| x); }
I'm not sure if this is a generic or something issue