diff options
Diffstat (limited to 'src/test/ui/underscore-imports/cycle.rs')
-rw-r--r-- | src/test/ui/underscore-imports/cycle.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/underscore-imports/cycle.rs b/src/test/ui/underscore-imports/cycle.rs new file mode 100644 index 000000000..bacf9b2d5 --- /dev/null +++ b/src/test/ui/underscore-imports/cycle.rs @@ -0,0 +1,18 @@ +// Check that cyclic glob imports are allowed with underscore imports + +// check-pass + +mod x { + pub use crate::y::*; + pub use std::ops::Deref as _; +} + +mod y { + pub use crate::x::*; + pub use std::ops::Deref as _; +} + +pub fn main() { + use x::*; + (&0).deref(); +} |