Closed
Description
Importing a module inside of itself will cause the compiler to abort with no helpful message after some lengthy processing.
Example:
ross@ubuntuvm:~/Documents$ cat rec.rs
mod rec;
ross@ubuntuvm:~/Documents$ rustc rec.rs
Aborted (core dumped)
This example gives a different error:
ross@ubuntuvm:~/Documents$ cat rec.rs
#[link(name = "rec",
vers = "0.0.1",
uuid = "a7e9aaa2-921d-47f0-ab61-69b562d7ea1b")];
#[comment = "Test Recursive Import"];
#[license = "CC0"];
#[crate_type = "lib"];
mod rec;
pub fn test() {
}
ross@ubuntuvm:~/Documents$ rustc rec.rs
memory_region::malloc> Out of memory allocating 1050652 bytesAborted (core dumped)
Metadata
Metadata
Assignees
Labels
No labels