Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-39974.rs
blob: 503647ef4a82f16fc7a04a7dcb39608c0f410019 [
file
] [
log
] [
blame
]
const
LENGTH
:
f64
=
2
;
struct
Thing
{
f
:
[[
f64
;
2
];
LENGTH
],
//~^ ERROR mismatched types
//~| expected `usize`, found `f64`
}
fn
main
()
{
let
_t
=
Thing
{
f
:
[[
0.0
,
0.0
],
[
0.0
,
0.0
],
[
0.0
,
0.0
],
[
0.0
,
0.0
]]
};
}