]>
Commit | Line | Data |
---|---|---|
9cc50fc6 | 1 | #![allow(dead_code)] |
85aaf69f | 2 | |
3157f602 | 3 | use std::panic::UnwindSafe; |
9cc50fc6 SL |
4 | use std::sync::Arc; |
5 | use std::cell::RefCell; | |
62682a34 | 6 | |
3157f602 | 7 | fn assert<T: UnwindSafe + ?Sized>() {} |
62682a34 | 8 | |
9cc50fc6 | 9 | fn main() { |
a7813a04 | 10 | assert::<Arc<RefCell<i32>>>(); |
1b1a35ee XL |
11 | //~^ ERROR the type `UnsafeCell<i32>` may contain interior mutability and a |
12 | //~| ERROR the type `UnsafeCell<isize>` may contain interior mutability and a | |
62682a34 | 13 | } |