diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 4f4ec4867972e..f24eb483fd785 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -812,12 +812,12 @@ pub trait FnMut for Sized? { /// A version of the call operator that takes a by-value receiver. #[lang="fn_once"] -pub trait FnOnce for Sized? { +pub trait FnOnce { /// This is called when the call operator is used. extern "rust-call" fn call_once(self, args: Args) -> Result; } -impl FnMut for F +impl FnMut for F where F : Fn { extern "rust-call" fn call_mut(&mut self, args: A) -> R {