rust/tests/ui/repeat-expr/repeat-expr-in-static.rs
2023-01-11 09:32:08 +00:00

9 lines
135 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);
}