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