Skip to content

Commit a350eb3

Browse files
committed
Fix test for #14082
Fixes #140765
1 parent c4e05e5 commit a350eb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ui/issues/issue-14082.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use foo::Foo;
66

77
mod foo {
8+
pub use d::*; // this imports d::Foo
89
pub use m::Foo; // this should shadow d::Foo
910
}
1011

@@ -16,4 +17,6 @@ mod d {
1617
pub struct Foo;
1718
}
1819

19-
fn main() {}
20+
fn main() {
21+
let _: foo::Foo = m::Foo;
22+
}

0 commit comments

Comments
 (0)