We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dad788 commit c8c342cCopy full SHA for c8c342c
tests/rustdoc-ui/issue-109282-import-inline-merge.rs
@@ -0,0 +1,14 @@
1
+// Regression test for <https://github.com/rust-lang/rust/issues/109282>.
2
+// Import for `ValueEnum` is inlined and doc comments on the import and `ValueEnum` itself are
3
+// merged. After the merge they still have correct parent scopes to resolve both `[ValueEnum]`.
4
+
5
+// check-pass
6
7
+mod m {
8
+ pub enum ValueEnum {}
9
+}
10
+mod m2 {
11
+ /// [`ValueEnum`]
12
+ pub use crate::m::ValueEnum;
13
14
+pub use m2::ValueEnum;
0 commit comments