Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
reachable
/
expr_cast.rs
blob: 76a7306b9d9e01c6fcb2394fc5f346ea2b205fa1 [
file
] [
log
] [
blame
]
#![
allow
(
unused_variables
)]
#![
allow
(
unused_assignments
)]
#![
allow
(
dead_code
)]
#![
deny
(
unreachable_code
)]
#![
feature
(
type_ascription
)]
fn
a
()
{
// the cast is unreachable:
let
x
=
{
return
}
as
!;
//~ ERROR unreachable
}
fn
main
()
{
}