aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/rust/array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/rust/array.rs')
-rw-r--r--tests/indent/rust/array.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/indent/rust/array.rs b/tests/indent/rust/array.rs
new file mode 100644
index 000000000..68344e0ee
--- /dev/null
+++ b/tests/indent/rust/array.rs
@@ -0,0 +1,11 @@
+const X: [i32; 2] = [
+ 1,
+ 2,
+];
+
+fn foo() {
+ let _x = [
+ 1,
+ 2,
+ ];
+}