mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 22:40:17 +00:00
13 lines
268 B
Rust
13 lines
268 B
Rust
use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432]
|
|
//~^ no `eggs` in `spam`
|
|
|
|
mod spam {
|
|
pub fn ham() { }
|
|
}
|
|
|
|
fn main() {
|
|
ham();
|
|
// Expect eggs to pass because the compiler inserts a fake name for it
|
|
eggs();
|
|
}
|