rust/tests/ui/repeat-expr/repeat-expr-in-static.rs
2024-02-16 20:02:50 +00:00

9 lines
136 B
Rust

//@ run-pass
static FOO: [isize; 4] = [32; 4];
static BAR: [isize; 4] = [32, 32, 32, 32];
pub fn main() {
assert_eq!(FOO, BAR);
}