Sign in
fuchsia
/
third_party
/
rust
/
1dc13b5904cde9279b76909013cd40e1661fe8eb
/
.
/
src
/
test
/
run-fail
/
cast-never.rs
blob: 3620ddee47869572206d4e182453c9e1f00104e6 [
file
] [
log
] [
blame
]
// Test that we can explicitly cast ! to another type
// error-pattern:explicit
#![
feature
(
never_type
)]
fn
main
()
{
let
x
:
!
=
panic
!();
let
y
:
u32
=
x
as
u32
;
}