blob: 6968e3669caec844d795ae9418d0485cd66faff5 (
plain)
1
2
3
4
5
6
7
8
9
|
// ignore-x86
// ^ due to stderr output differences
use std::cell::Cell;
use std::panic::catch_unwind;
fn main() {
let mut x = Cell::new(22);
catch_unwind(|| { x.set(23); });
//~^ ERROR the type `std::cell::UnsafeCell<i32>` may contain interior mutability and a
}
|