Skip to content

Commit cc8155f

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

File tree

1 file changed

+15
-2
lines changed
  • src/test/rustdoc-gui/src/test_docs

1 file changed

+15
-2
lines changed

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

+15-2
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ pub mod details {
334334
pub mod doc_block_table {
335335

336336
pub trait DocBlockTableTrait {
337-
fn func();
337+
fn foo();
338338
}
339339

340340
/// Struct doc.
@@ -350,7 +350,7 @@ pub mod doc_block_table {
350350
/// | header1 | header2 |
351351
/// |--------------------------|--------------------------|
352352
/// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
353-
fn func() {
353+
fn foo() {
354354
println!();
355355
}
356356
}
@@ -416,3 +416,16 @@ pub trait TraitWithoutGenerics {
416416

417417
fn foo();
418418
}
419+
420+
pub mod search_results {
421+
422+
pub struct SearchResults {
423+
pub foo: i32,
424+
}
425+
426+
#[macro_export]
427+
macro_rules! foo {
428+
() => {};
429+
}
430+
431+
}

0 commit comments

Comments
 (0)