Skip to content

Commit c8c342c

Browse files
Add regression test for #109282
1 parent 1dad788 commit c8c342c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)