rust/tests/ui/imports/import-from-missing.rs
2025-04-08 23:06:31 +03:00

13 lines
273 B
Rust

use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432]
//~^ NOTE 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();
}