diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/coverage/source/comments.rs | 7 | ||||
-rw-r--r-- | src/tools/rustfmt/tests/coverage/target/comments.rs | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/coverage/source/comments.rs b/src/tools/rustfmt/tests/coverage/source/comments.rs new file mode 100644 index 000000000..10940039e --- /dev/null +++ b/src/tools/rustfmt/tests/coverage/source/comments.rs @@ -0,0 +1,7 @@ +// rustfmt-emit_mode: coverage +/// Here's a doc comment! +fn main() { + // foo is bar + let foo = "bar"; + // loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong comment!!!!! +} diff --git a/src/tools/rustfmt/tests/coverage/target/comments.rs b/src/tools/rustfmt/tests/coverage/target/comments.rs new file mode 100644 index 000000000..95e7b4705 --- /dev/null +++ b/src/tools/rustfmt/tests/coverage/target/comments.rs @@ -0,0 +1,7 @@ +XX XXXXXXXXXXXXXXXXXX XXXXXXXX +/// Here's a doc comment! +fn main() { + XX XXX XX XXX + let foo = "bar"; + XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXX +} |