You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/nmatsakis/tmp/foo.rs:6:5: 6:17 error: the trait `core::ops::Fn<<generic #9>,<generic #10>>` is
not implemented for the type `&&mut F`
/home/nmatsakis/tmp/foo.rs:6 (&mut *f)(x)
^~~~~~~~~~~~
/home/nmatsakis/tmp/foo.rs:6:5: 6:17 error: the type of this value must be known in this context
/home/nmatsakis/tmp/foo.rs:6 (&mut *f)(x)
^~~~~~~~~~~~
/home/nmatsakis/tmp/foo.rs:6:5: 6:17 error: cannot use call notation; the first type parameter for t
he function trait is neither a tuple nor unit [E0059]
/home/nmatsakis/tmp/foo.rs:6 (&mut *f)(x)
^~~~~~~~~~~~
error: aborting due to 3 previous errors
I was not able to get it to compile without resorting to f.call_mut((x,))
The text was updated successfully, but these errors were encountered:
I expect this example to compile:
but in fact it yields:
I was not able to get it to compile without resorting to
f.call_mut((x,))
The text was updated successfully, but these errors were encountered: