diff options
Diffstat (limited to 'src/test/pretty/top-level-doc-comments.rs')
-rw-r--r-- | src/test/pretty/top-level-doc-comments.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/pretty/top-level-doc-comments.rs b/src/test/pretty/top-level-doc-comments.rs new file mode 100644 index 000000000..b97927124 --- /dev/null +++ b/src/test/pretty/top-level-doc-comments.rs @@ -0,0 +1,8 @@ +/// Some doc comment. +struct X; + +// pp-exact + +// Test that rust can properly pretty print a doc comment if it's the first line in a file. some + +fn main() { let x = X; } |