We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52980d0 commit 7994197Copy full SHA for 7994197
src/liballoc/boxed.rs
@@ -735,9 +735,7 @@ impl<I: FusedIterator + ?Sized> FusedIterator for Box<I> {}
735
#[rustc_paren_sugar]
736
#[unstable(feature = "fnbox",
737
reason = "will be deprecated if and when `Box<FnOnce>` becomes usable", issue = "28796")]
738
-pub trait FnBox<A> {
739
- type Output;
740
-
+pub trait FnBox<A>: FnOnce<A> {
741
fn call_box(self: Box<Self>, args: A) -> Self::Output;
742
}
743
@@ -746,8 +744,6 @@ pub trait FnBox<A> {
746
744
impl<A, F> FnBox<A> for F
747
745
where F: FnOnce<A>
748
{
749
- type Output = F::Output;
750
751
fn call_box(self: Box<F>, args: A) -> F::Output {
752
self.call_once(args)
753
0 commit comments