mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Add regression test for #109282
This commit is contained in:
parent
1dad788d8d
commit
c8c342c072
14
tests/rustdoc-ui/issue-109282-import-inline-merge.rs
Normal file
14
tests/rustdoc-ui/issue-109282-import-inline-merge.rs
Normal file
@ -0,0 +1,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;
|
Loading…
Reference in New Issue
Block a user