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