Add regression test for inlined doc comment on impl block

This commit is contained in:
Guillaume Gomez 2022-10-25 16:28:27 +02:00
parent 641bf08396
commit a4279a1d1f
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,5 @@
pub struct Foo;
impl Foo {
pub fn foo() {}
}

View 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;