diff options
Diffstat (limited to 'tests/ui/repeat-expr/repeat-expr-in-static.rs')
| -rw-r--r-- | tests/ui/repeat-expr/repeat-expr-in-static.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/repeat-expr/repeat-expr-in-static.rs b/tests/ui/repeat-expr/repeat-expr-in-static.rs new file mode 100644 index 00000000000..0b895379330 --- /dev/null +++ b/tests/ui/repeat-expr/repeat-expr-in-static.rs @@ -0,0 +1,8 @@ +// run-pass + +static FOO: [isize; 4] = [32; 4]; +static BAR: [isize; 4] = [32, 32, 32, 32]; + +pub fn main() { + assert_eq!(FOO, BAR); +} |
