]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-imports/cycle.rs
Auto merge of #97553 - nbdd0121:lib, r=Mark-Simulacrum
[rust.git] / src / test / ui / underscore-imports / cycle.rs
1 // Check that cyclic glob imports are allowed with underscore imports
2
3 // check-pass
4
5 mod x {
6     pub use crate::y::*;
7     pub use std::ops::Deref as _;
8 }
9
10 mod y {
11     pub use crate::x::*;
12     pub use std::ops::Deref as _;
13 }
14
15 pub fn main() {
16     use x::*;
17     (&0).deref();
18 }