Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
never_type
/
cast-never.rs
blob: fbba114ab327487033ffb75593b1642398a635ca [
file
] [
log
] [
blame
]
// Test that we can explicitly cast ! to another type
// check-pass
fn
main
()
{
let
x
:
!
=
panic
!();
let
y
:
u32
=
x
as
u32
;
}