Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
crashes
/
ice-9238.rs
blob: cbce84305ba81b432f502131abd621cd5a0aff47 [
file
]
//@ check-pass
#![
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
]
};
}