Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
reachable
/
expr_type.rs
blob: ff647bda0e87e3be335e5750e3b89d4932846a77 [
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
}:
!;
//~ ERROR unreachable
}
fn
main
()
{
}