Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-39974.rs
blob: 5c89a0dc0beb1e1146d53bbf4a871f3d55e0b9ed [
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
]]
};
}