about summary refs log tree commit diff
path: root/tests/rustdoc-ui/issues/issue-109282-import-inline-merge.rs
blob: e4486ab26f906b34940311c08857e9ae4c95c17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Regression test for <https://github.com/rust-lang/rust/issues/109282>.
// Import for `ValueEnum` is inlined and doc comments on the import and `ValueEnum` itself are
// merged. After the merge they still have correct parent scopes to resolve both `[ValueEnum]`.

//@ check-pass

mod m {
    pub enum ValueEnum {}
}
mod m2 {
    /// [`ValueEnum`]
    pub use crate::m::ValueEnum;
}
pub use m2::ValueEnum;