summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-5260.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-5260.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-5260.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-5260.rs b/src/tools/rustfmt/tests/source/issue-5260.rs
new file mode 100644
index 000000000..c06068172
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-5260.rs
@@ -0,0 +1,14 @@
+// rustfmt-wrap_comments: true
+
+/// [MyType](VeryLongPathToMyType::NoLineBreak::Here::Okay::ThatWouldBeNice::Thanks)
+fn documented_with_longtype() {
+ // # We're using a long type link, rustfmt should not break line
+ // on the type when `wrap_comments = true`
+}
+
+/// VeryLongPathToMyType::JustMyType::But::VeryVery::Long::NoLineBreak::Here::Okay::ThatWouldBeNice::Thanks
+fn documented_with_verylongtype() {
+ // # We're using a long type link, rustfmt should not break line
+ // on the type when `wrap_comments = true`
+}
+