blob: 9cb180014b86b7df60cbe621a84ecd27740ae779 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const LENGTH: f64 = 2;
//~^ ERROR mismatched types
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]] };
}
|