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