fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
861 B17 linesraw
1error[E0277]: the type `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
2  --> $DIR/not-panic-safe-5.rs:9:14
3   |
4LL |     assert::<*const UnsafeCell<i32>>();
5   |              ^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
6   |
7   = help: the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>`
8   = note: required for `*const UnsafeCell<i32>` to implement `UnwindSafe`
9note: required by a bound in `assert`
10  --> $DIR/not-panic-safe-5.rs:6:14
11   |
12LL | fn assert<T: UnwindSafe + ?Sized>() {}
13   |              ^^^^^^^^^^ required by this bound in `assert`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.