Skip to content

Commit 8211760

Browse files
committed
rustdoc: update test case to deal with "coo" only accepting dist=1
1 parent e09e6df commit 8211760

File tree

1 file changed

+14
-2
lines changed
  • tests/rustdoc-gui/src/test_docs

1 file changed

+14
-2
lines changed

tests/rustdoc-gui/src/test_docs/lib.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ pub mod details {
340340
pub mod doc_block_table {
341341

342342
pub trait DocBlockTableTrait {
343-
fn func();
343+
fn foo();
344344
}
345345

346346
/// Struct doc.
@@ -359,7 +359,7 @@ pub mod doc_block_table {
359359
/// | header1 | header2 |
360360
/// |--------------------------|--------------------------|
361361
/// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
362-
fn func() {
362+
fn foo() {
363363
println!();
364364
}
365365
}
@@ -474,3 +474,15 @@ impl TypeWithImplDoc {
474474
///
475475
/// </sub>
476476
pub mod codeblock_sub {}
477+
pub mod search_results {
478+
479+
pub struct SearchResults {
480+
pub foo: i32,
481+
}
482+
483+
#[macro_export]
484+
macro_rules! foo {
485+
() => {};
486+
}
487+
488+
}

0 commit comments

Comments
 (0)