@@ -525,14 +525,16 @@ impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {}
525
525
/// }
526
526
/// ```
527
527
#[ rustc_paren_sugar]
528
- #[ unstable( feature = "fnbox" , reason = "Newly introduced" , issue = "28796" ) ]
528
+ #[ unstable( feature = "fnbox" ,
529
+ reason = "will be deprecated if and when Box<FnOnce> becomes usable" , issue = "28796" ) ]
529
530
pub trait FnBox < A > {
530
531
type Output ;
531
532
532
533
fn call_box ( self : Box < Self > , args : A ) -> Self :: Output ;
533
534
}
534
535
535
- #[ unstable( feature = "fnbox" , reason = "Newly introduced" , issue = "28796" ) ]
536
+ #[ unstable( feature = "fnbox" ,
537
+ reason = "will be deprecated if and when Box<FnOnce> becomes usable" , issue = "28796" ) ]
536
538
impl < A , F > FnBox < A > for F where F : FnOnce < A >
537
539
{
538
540
type Output = F :: Output ;
@@ -542,7 +544,8 @@ impl<A, F> FnBox<A> for F where F: FnOnce<A>
542
544
}
543
545
}
544
546
545
- #[ unstable( feature = "fnbox" , reason = "Newly introduced" , issue = "28796" ) ]
547
+ #[ unstable( feature = "fnbox" ,
548
+ reason = "will be deprecated if and when Box<FnOnce> becomes usable" , issue = "28796" ) ]
546
549
impl < ' a , A , R > FnOnce < A > for Box < FnBox < A , Output = R > + ' a > {
547
550
type Output = R ;
548
551
@@ -551,7 +554,8 @@ impl<'a, A, R> FnOnce<A> for Box<FnBox<A, Output = R> + 'a> {
551
554
}
552
555
}
553
556
554
- #[ unstable( feature = "fnbox" , reason = "Newly introduced" , issue = "28796" ) ]
557
+ #[ unstable( feature = "fnbox" ,
558
+ reason = "will be deprecated if and when Box<FnOnce> becomes usable" , issue = "28796" ) ]
555
559
impl < ' a , A , R > FnOnce < A > for Box < FnBox < A , Output = R > + Send + ' a > {
556
560
type Output = R ;
557
561
0 commit comments