Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
reachable
/
expr_cast.rs
blob: f53bcb97e69723ad748e710a63deae7916f00876 [
file
] [
log
] [
blame
]
#![
allow
(
unused_variables
)]
#![
allow
(
unused_assignments
)]
#![
allow
(
dead_code
)]
#![
deny
(
unreachable_code
)]
#![
feature
(
never_type
,
type_ascription
)]
fn
a
()
{
// the cast is unreachable:
let
x
=
{
return
}
as
!;
//~ ERROR unreachable
}
fn
main
()
{
}