summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2995.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-2995.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-2995.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-2995.rs b/src/tools/rustfmt/tests/target/issue-2995.rs
new file mode 100644
index 000000000..890da8def
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-2995.rs
@@ -0,0 +1,7 @@
+fn issue_2995() {
+ // '\u{2028}' is inserted in the code below.
+
+ [0, 1];
+ [0, /* */ 1];
+ [0, 1];
+}