Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
uninhabited
/
uninhabited-enum-cast.rs
blob: 7e178e054cc4ea314257dad7b4145280d4f8461b [
file
] [
log
] [
blame
]
enum
E
{}
fn
f
(
e
:
E
)
{
println
!(
"{}"
,
(
e
as
isize
).
to_string
());
//~ ERROR non-primitive cast
}
fn
main
()
{}