Skip to content

Commit a4279a1

Browse files
Add regression test for inlined doc comment on impl block
1 parent 641bf08 commit a4279a1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub struct Foo;
2+
3+
impl Foo {
4+
pub fn foo() {}
5+
}

src/test/rustdoc/reexport-doc.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// aux-build:reexport-doc-aux.rs
2+
3+
extern crate reexport_doc_aux as dep;
4+
5+
// @has 'reexport_doc/struct.Foo.html'
6+
// @count - '//p' 'These are the docs for Foo.' 1
7+
/// These are the docs for Foo.
8+
pub use dep::Foo;

0 commit comments

Comments
 (0)