Skip to content

Commit b455efd

Browse files
committed
Add an idempotent test case for single-line long block-style comments
1 parent 884994f commit b455efd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/source/issue-4668.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const C: usize = 0_usize;
2+
const U: usize = /* A long block-style comment A long block-style comment A long block-style comment A long block-style comment */ if C > 0 { 4 } else { 3 };

tests/target/issue-4668.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const C: usize = 0_usize;
2+
const U: usize =
3+
/* A long block-style comment A long block-style comment A long block-style comment A long block-style comment */
4+
if C > 0 { 4 } else { 3 };

0 commit comments

Comments
 (0)