diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-10-25 16:28:27 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-10-25 23:24:39 +0200 |
| commit | a4279a1d1f9fd8bde6dfc46ac9d53d72fd32a41d (patch) | |
| tree | 2ef4f23d56e0b13ab94396897b1c9bd438239668 /src/test | |
| parent | 641bf083969ce1bd519d8270c1985c9a86f3a0af (diff) | |
| download | rust-a4279a1d1f9fd8bde6dfc46ac9d53d72fd32a41d.tar.gz rust-a4279a1d1f9fd8bde6dfc46ac9d53d72fd32a41d.zip | |
Add regression test for inlined doc comment on impl block
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/auxiliary/reexport-doc-aux.rs | 5 | ||||
| -rw-r--r-- | src/test/rustdoc/reexport-doc.rs | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/reexport-doc-aux.rs b/src/test/rustdoc/auxiliary/reexport-doc-aux.rs new file mode 100644 index 00000000000..3400717eba1 --- /dev/null +++ b/src/test/rustdoc/auxiliary/reexport-doc-aux.rs @@ -0,0 +1,5 @@ +pub struct Foo; + +impl Foo { + pub fn foo() {} +} diff --git a/src/test/rustdoc/reexport-doc.rs b/src/test/rustdoc/reexport-doc.rs new file mode 100644 index 00000000000..df2c889b4d5 --- /dev/null +++ b/src/test/rustdoc/reexport-doc.rs @@ -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; |
