Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
consts
/
const-eval
/
conditional_array_execution.rs
blob: 1473efa7428526aaafdc4c7e965424ce84c2200d [
file
] [
log
] [
blame
]
const
X
:
u32
=
5
;
const
Y
:
u32
=
6
;
const
FOO
:
u32
=
[
X
-
Y
,
Y
-
X
][(
X
<
Y
)
as
usize
];
//~^ ERROR overflow
fn
main
()
{
println
!(
"{}"
,
FOO
);
}