diff options
| author | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
| commit | 4bfde41afa31aa957a80f39e782062834a0dc583 (patch) | |
| tree | e560ed4646bc001322d9bfa3f1ad38f16e39fa2e /tests/rustdoc-ui/intra-doc/import-inline-merge.rs | |
| parent | 2be2568a54540a8ddf2c9c77a20ec73b018b45cc (diff) | |
| parent | 204807d8a93041f9ef69cc2a69646fe1020f4c9c (diff) | |
| download | rust-4bfde41afa31aa957a80f39e782062834a0dc583.tar.gz rust-4bfde41afa31aa957a80f39e782062834a0dc583.zip | |
Merge from rustc
Diffstat (limited to 'tests/rustdoc-ui/intra-doc/import-inline-merge.rs')
| -rw-r--r-- | tests/rustdoc-ui/intra-doc/import-inline-merge.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/intra-doc/import-inline-merge.rs b/tests/rustdoc-ui/intra-doc/import-inline-merge.rs new file mode 100644 index 00000000000..31fef032b0f --- /dev/null +++ b/tests/rustdoc-ui/intra-doc/import-inline-merge.rs @@ -0,0 +1,16 @@ +// Import for `A` is inlined and doc comments on the import and `A` itself are merged. +// After the merge they still have correct parent scopes to resolve both `[A]` and `[B]`. + +// check-pass + +#![allow(rustdoc::private_intra_doc_links)] + +mod m { + /// [B] + pub struct A {} + + pub struct B {} +} + +/// [A] +pub use m::A; |
