rust/src/test/run-pass/repeat-expr-in-static.rs
2018-12-25 21:08:33 -07:00

7 lines
122 B
Rust

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