This only happened for single-length import paths, because the import was being looked up in its own scope.
10 lines
86 B
Rust
10 lines
86 B
Rust
// error-pattern: cyclic import
|
|
|
|
import y::x;
|
|
|
|
mod y {
|
|
import x;
|
|
}
|
|
|
|
fn main() {
|
|
}
|