Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
tests
/
ui
/
transmute
/
diverging-fn-transmute.rs
blob: aca82037a0c2c68d343eb47478efe3b3b7c2a510 [
file
] [
log
] [
blame
]
//! Regression test for issue #35849: transmute with panic in diverging function
fn
assert_sizeof
()
->
!
{
unsafe
{
::
std
::
mem
::
transmute
::<
f64
,
[
u8
;
8
]>(
panic
!())
//~^ ERROR mismatched types
}
}
fn
main
()
{}