]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-imports/cycle.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }