mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Add regression test for inlined doc comment on impl block
This commit is contained in:
parent
641bf08396
commit
a4279a1d1f
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…
Reference in New Issue
Block a user