about summary refs log tree commit diff
path: root/tests/rustdoc-gui/src/test_docs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-24 12:31:58 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-24 12:33:29 +0200
commita29072a67afad6189603652fc30c146e6d9a45ce (patch)
treea8eb8d2e09c675dcec06760514a0c8781490275b /tests/rustdoc-gui/src/test_docs
parent7a895bd87a4d3a2229ae3c3b5e725f5dbecc1c13 (diff)
downloadrust-a29072a67afad6189603652fc30c146e6d9a45ce.tar.gz
rust-a29072a67afad6189603652fc30c146e6d9a45ce.zip
Add/update GUI test for impl indent fix
Diffstat (limited to 'tests/rustdoc-gui/src/test_docs')
-rw-r--r--tests/rustdoc-gui/src/test_docs/lib.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs
index 31f6b7f09b7..bb0015b8f9c 100644
--- a/tests/rustdoc-gui/src/test_docs/lib.rs
+++ b/tests/rustdoc-gui/src/test_docs/lib.rs
@@ -740,3 +740,29 @@ pub mod SidebarSort {
     impl Sort for Cell<u8> {}
     impl<'a> Sort for &'a str {}
 }
+
+pub mod impls_indent {
+    pub struct Context;
+
+    /// Working with objects.
+    ///
+    /// # Safety
+    ///
+    /// Functions that take indices of locals do not check bounds on these indices;
+    /// the caller must ensure that the indices are less than the number of locals
+    /// in the current stack frame.
+    impl Context {
+    }
+
+    /// Working with objects.
+    ///
+    /// # Safety
+    ///
+    /// Functions that take indices of locals do not check bounds on these indices;
+    /// the caller must ensure that the indices are less than the number of locals
+    /// in the current stack frame.
+    impl Context {
+        /// bla
+        pub fn bar() {}
+    }
+}