Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
run-fail
/
cast-never.rs
blob: 0b05a4b911284e942e3fb163add9699f92806d74 [
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
;
}