2019-08-31 10:31:50 -05:00
|
|
|
// Check that cyclic glob imports are allowed with underscore imports
|
|
|
|
|
|
|
|
// check-pass
|
|
|
|
|
2023-05-24 11:05:42 -05:00
|
|
|
#![allow(noop_method_call)]
|
|
|
|
|
2019-08-31 10:31:50 -05:00
|
|
|
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();
|
|
|
|
}
|