Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
coercion
/
coerce-to-bang-cast.rs
blob: 8ef1948084654d9dfa435b43a99d80c91a280e2e [
file
] [
log
] [
blame
]
#![
feature
(
never_type
)]
fn
foo
(
x
:
usize
,
y
:
!,
z
:
usize
)
{
}
fn
cast_a
()
{
let
y
=
{
return
;
22
}
as
!;
//~^ ERROR non-primitive cast
}
fn
cast_b
()
{
let
y
=
22
as
!;
//~ ERROR non-primitive cast
}
fn
main
()
{
}