Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
run-fail
/
adjust_never.rs
blob: 8661a2f80a7ba0a92d6fb58d27024a3cfb222e63 [
file
] [
log
] [
blame
]
// Test that a variable of type ! can coerce to another type.
// error-pattern:explicit
#![
feature
(
never_type
)]
fn
main
()
{
let
x
:
!
=
panic
!();
let
y
:
u32
=
x
;
}