Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
not-panic
/
not-panic-safe.rs
blob: 93a8506ab181f3553cd7fb45dc771d782918e810 [
file
] [
log
] [
blame
]
#![
allow
(
dead_code
)]
#![
feature
(
recover
)]
use
std
::
panic
::
UnwindSafe
;
fn
assert
<
T
:
UnwindSafe
+
?
Sized
>()
{}
fn
main
()
{
assert
::<&
mut
i32
>();
//~^ ERROR the type `&mut i32` may not be safely transferred across an unwind boundary
}