Add regression test for inlined doc comment on impl block
This commit is contained in:
parent
641bf08396
commit
a4279a1d1f
2 changed files with 13 additions and 0 deletions
5
src/test/rustdoc/auxiliary/reexport-doc-aux.rs
Normal file
5
src/test/rustdoc/auxiliary/reexport-doc-aux.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
pub struct Foo;
|
||||
|
||||
impl Foo {
|
||||
pub fn foo() {}
|
||||
}
|
8
src/test/rustdoc/reexport-doc.rs
Normal file
8
src/test/rustdoc/reexport-doc.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// aux-build:reexport-doc-aux.rs
|
||||
|
||||
extern crate reexport_doc_aux as dep;
|
||||
|
||||
// @has 'reexport_doc/struct.Foo.html'
|
||||
// @count - '//p' 'These are the docs for Foo.' 1
|
||||
/// These are the docs for Foo.
|
||||
pub use dep::Foo;
|
Loading…
Add table
Add a link
Reference in a new issue