diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs b/src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs new file mode 100644 index 000000000..454f94be8 --- /dev/null +++ b/src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs @@ -0,0 +1,7 @@ +// run-pass + +static FOO: [isize; 3] = [1, 2, 3]; + +pub fn main() { + println!("{} {} {}", FOO[0], FOO[1], FOO[2]); +} |