Closed
Description
trait Foo: Fn(i32) + Send { }
impl<T:?Sized + Fn(i32) + Send> Foo for T { }
fn wants_foo(t: Box<Foo>) {
}
fn main() {
let f = Box::new(|x| println!("{}", x));
wants_foo(f);
}
Output:
<anon>:9:13: 9:14 error: the value of the associated type `Output` (from the trait `core::ops::FnOnce`) must be specified [E0191]
<anon>:9 wants_foo(f);
^