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-01-24 15:36:52 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-24 15:36:52 +0100
commitcaacb048303bfef39a2c89baccccad8e79e5a8d2 (patch)
treebd7a1de87c137722c68b942f59084a82849442a9 /tests/rustdoc-gui/src/test_docs
parent530f8bb3dbf90ff1dd65e6ef59f717cd6de66b12 (diff)
downloadrust-caacb048303bfef39a2c89baccccad8e79e5a8d2.tar.gz
rust-caacb048303bfef39a2c89baccccad8e79e5a8d2.zip
Add GUI regression test for indent of trait items on mobile
Diffstat (limited to 'tests/rustdoc-gui/src/test_docs')
-rw-r--r--tests/rustdoc-gui/src/test_docs/lib.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs
index dae13d9ac18..1a9ffbe8898 100644
--- a/tests/rustdoc-gui/src/test_docs/lib.rs
+++ b/tests/rustdoc-gui/src/test_docs/lib.rs
@@ -691,3 +691,25 @@ impl ImplDoc {
 impl ImplDoc {
     pub fn bar5() {}
 }
+
+pub trait ItemsTrait {
+    /// You want doc, here is doc!
+    ///
+    /// blablala
+    type F;
+
+    /// You want doc, here is doc!
+    ///
+    /// blablala
+    const X: u32;
+
+    /// You want doc, here is doc!
+    ///
+    /// blablala
+    fn foo() {}
+
+    /// You want doc, here is doc!
+    ///
+    /// blablala
+    fn bar();
+}