Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
()
{
}