about summary refs log tree commit diff
path: root/tests/rustdoc-gui/src/test_docs/lib.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-28 23:07:36 -0700
committerMichael Howell <michael@notriddle.com>2023-01-21 00:11:39 -0700
commit8211760b9188d3d008e1e1c0cc27292dde3eb162 (patch)
treee2c0f1593c33fda5a158eedae8c45205a3bd3196 /tests/rustdoc-gui/src/test_docs/lib.rs
parente09e6df787df074becd7b1b5b1138f517dd788d5 (diff)
downloadrust-8211760b9188d3d008e1e1c0cc27292dde3eb162.tar.gz
rust-8211760b9188d3d008e1e1c0cc27292dde3eb162.zip
rustdoc: update test case to deal with "coo" only accepting dist=1
Diffstat (limited to 'tests/rustdoc-gui/src/test_docs/lib.rs')
-rw-r--r--tests/rustdoc-gui/src/test_docs/lib.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs
index 51250439694..6ad1e8b4f67 100644
--- a/tests/rustdoc-gui/src/test_docs/lib.rs
+++ b/tests/rustdoc-gui/src/test_docs/lib.rs
@@ -340,7 +340,7 @@ pub mod details {
 pub mod doc_block_table {
 
     pub trait DocBlockTableTrait {
-        fn func();
+        fn foo();
     }
 
     /// Struct doc.
@@ -359,7 +359,7 @@ pub mod doc_block_table {
         /// | header1                  | header2                  |
         /// |--------------------------|--------------------------|
         /// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
-        fn func() {
+        fn foo() {
             println!();
         }
     }
@@ -474,3 +474,15 @@ impl TypeWithImplDoc {
 ///
 /// </sub>
 pub mod codeblock_sub {}
+pub mod search_results {
+
+    pub struct SearchResults {
+        pub foo: i32,
+    }
+
+    #[macro_export]
+    macro_rules! foo {
+        () => {};
+    }
+
+}