]> git.proxmox.com Git - rustc.git/blame - src/test/ui/not-panic/not-panic-safe-6.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / not-panic / not-panic-safe-6.stderr
CommitLineData
1b1a35ee 1error[E0277]: the type `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
f2b60f7d 2 --> $DIR/not-panic-safe-6.rs:9:14
b7449926
XL
3 |
4LL | assert::<*mut RefCell<i32>>();
f2b60f7d 5 | ^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
b7449926 6 |
1b1a35ee
XL
7 = help: within `RefCell<i32>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>`
8 = note: required because it appears within the type `RefCell<i32>`
f2b60f7d 9 = note: required for `*mut RefCell<i32>` to implement `UnwindSafe`
94222f64
XL
10note: required by a bound in `assert`
11 --> $DIR/not-panic-safe-6.rs:6:14
12 |
13LL | fn assert<T: UnwindSafe + ?Sized>() {}
14 | ^^^^^^^^^^ required by this bound in `assert`
b7449926 15
1b1a35ee 16error[E0277]: the type `UnsafeCell<isize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
f2b60f7d 17 --> $DIR/not-panic-safe-6.rs:9:14
b7449926
XL
18 |
19LL | assert::<*mut RefCell<i32>>();
f2b60f7d 20 | ^^^^^^^^^^^^^^^^^ `UnsafeCell<isize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
b7449926 21 |
1b1a35ee
XL
22 = help: within `RefCell<i32>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<isize>`
23 = note: required because it appears within the type `Cell<isize>`
24 = note: required because it appears within the type `RefCell<i32>`
f2b60f7d 25 = note: required for `*mut RefCell<i32>` to implement `UnwindSafe`
94222f64
XL
26note: required by a bound in `assert`
27 --> $DIR/not-panic-safe-6.rs:6:14
28 |
29LL | fn assert<T: UnwindSafe + ?Sized>() {}
30 | ^^^^^^^^^^ required by this bound in `assert`
b7449926
XL
31
32error: aborting due to 2 previous errors
33
34For more information about this error, try `rustc --explain E0277`.