Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
coercion
/
coerce-to-bang-cast.rs
blob: ea1384a1dab55de5c766d5cd938f0d83838f2f09 [
file
] [
log
] [
blame
]
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
()
{
}