File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for *const T {}
198
198
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
199
199
impl < T : RefUnwindSafe + ?Sized > UnwindSafe for * mut T { }
200
200
#[ unstable( feature = "unique" , issue = "27730" ) ]
201
- impl < T : UnwindSafe > UnwindSafe for Unique < T > { }
201
+ impl < T : UnwindSafe + ? Sized > UnwindSafe for Unique < T > { }
202
202
#[ unstable( feature = "shared" , issue = "27730" ) ]
203
203
impl < T : RefUnwindSafe + ?Sized > UnwindSafe for Shared < T > { }
204
204
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
#![ allow( dead_code) ]
12
- #![ feature( recover) ]
13
12
14
13
use std:: panic:: { UnwindSafe , AssertUnwindSafe } ;
15
14
use std:: cell:: RefCell ;
@@ -40,6 +39,10 @@ fn main() {
40
39
assert :: < & RwLock < i32 > > ( ) ;
41
40
assert :: < Rc < i32 > > ( ) ;
42
41
assert :: < Arc < i32 > > ( ) ;
42
+ assert :: < Box < [ u8 ] > > ( ) ;
43
+
44
+ trait Trait : UnwindSafe { }
45
+ assert :: < Box < Trait > > ( ) ;
43
46
44
47
fn bar < T > ( ) {
45
48
assert :: < Mutex < T > > ( ) ;
You can’t perform that action at this time.
0 commit comments