Sign in
fuchsia
/
third_party
/
rust
/
d2b0555964913073a2680739e8678bab4b7850ed
/
.
/
tests
/
ui
/
never_type
/
adjust_never.rs
blob: aa7ee9ef7ab175cb11a4b2ce3394b1e5aa3dbde4 [
file
] [
log
] [
blame
]
// Test that a variable of type ! can coerce to another type.
//@ check-pass
#![
feature
(
never_type
)]
fn
main
()
{
let
x
:
!
=
panic
!();
let
y
:
u32
=
x
;
}