Skip to content

Commit

Permalink
rustdoc: update test case to deal with "coo" only accepting dist=1
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Oct 29, 2022
1 parent baa0f64 commit cc8155f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/test/rustdoc-gui/src/test_docs/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ pub mod details {
pub mod doc_block_table {

pub trait DocBlockTableTrait {
fn func();
fn foo();
}

/// Struct doc.
Expand All @@ -350,7 +350,7 @@ pub mod doc_block_table {
/// | header1 | header2 |
/// |--------------------------|--------------------------|
/// | Lorem Ipsum, Lorem Ipsum | Lorem Ipsum, Lorem Ipsum |
fn func() {
fn foo() {
println!();
}
}
Expand Down Expand Up @@ -416,3 +416,16 @@ pub trait TraitWithoutGenerics {

fn foo();
}

pub mod search_results {

pub struct SearchResults {
pub foo: i32,
}

#[macro_export]
macro_rules! foo {
() => {};
}

}

0 comments on commit cc8155f

Please sign in to comment.