15 lines
142 B
Rust
15 lines
142 B
Rust
// error-pattern:cyclic import
|
|
|
|
mod a {
|
|
import b::x;
|
|
export x;
|
|
}
|
|
|
|
mod b {
|
|
import a::x;
|
|
export x;
|
|
|
|
fn main() {
|
|
auto y = x;
|
|
}
|
|
}
|