Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
ice-9238.rs
blob: ee6abd519f16e19f19fc14440345dd8129dea5de [
file
] [
log
] [
blame
]
#![
allow
(
incomplete_features
)]
#![
feature
(
generic_const_exprs
)]
#![
warn
(
clippy
::
branches_sharing_code
)]
const
fn
f
()
->
usize
{
2
}
const
C
:
[
f64
;
f
()]
=
[
0f64
;
f
()];
fn
main
()
{
let
_
=
if
true
{
C
[
0
]
}
else
{
C
[
1
]
};
}