about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-11-27 17:34:47 -0700
committerMichael Howell <michael@notriddle.com>2024-12-02 19:05:36 -0700
commitd3a7fb140c539be677db2ef0f7f93f6b5d0a19f1 (patch)
tree38c464ac0d2912c98a08eeef8ef4b6b5d86cb42c /tests
parent646d72a01dda7224e7bf8c39a0b0451f112b1226 (diff)
downloadrust-d3a7fb140c539be677db2ef0f7f93f6b5d0a19f1.tar.gz
rust-d3a7fb140c539be677db2ef0f7f93f6b5d0a19f1.zip
doc_lazy_continuation: Correctly count indent with backslashes
changelog: [`doc_lazy_continuation`]: correctly count indent with backslashes
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/doc/doc_lazy_list.fixed6
-rw-r--r--tests/ui/doc/doc_lazy_list.rs6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/doc/doc_lazy_list.fixed b/tests/ui/doc/doc_lazy_list.fixed
index da537518a2b..0822cc7c635 100644
--- a/tests/ui/doc/doc_lazy_list.fixed
+++ b/tests/ui/doc/doc_lazy_list.fixed
@@ -75,3 +75,9 @@ fn seven() {}
 ///   ]
 //~^ ERROR: doc list item without indentation
 fn eight() {}
+
+#[rustfmt::skip]
+// https://github.com/rust-lang/rust-clippy/issues/13705
+/// - \[text in square brackets\] with a long following description
+///   that goes over multiple lines
+pub fn backslash_escaped_square_braces() {}
diff --git a/tests/ui/doc/doc_lazy_list.rs b/tests/ui/doc/doc_lazy_list.rs
index 3cc18e35780..068de140e00 100644
--- a/tests/ui/doc/doc_lazy_list.rs
+++ b/tests/ui/doc/doc_lazy_list.rs
@@ -75,3 +75,9 @@ fn seven() {}
 ///  ]
 //~^ ERROR: doc list item without indentation
 fn eight() {}
+
+#[rustfmt::skip]
+// https://github.com/rust-lang/rust-clippy/issues/13705
+/// - \[text in square brackets\] with a long following description
+///   that goes over multiple lines
+pub fn backslash_escaped_square_braces() {}