mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 16:21:28 +00:00
13 lines
408 B
Rust
13 lines
408 B
Rust
mod foo {
|
|
use spam::*; //~ ERROR unresolved import `spam` [E0432]
|
|
}
|
|
|
|
fn main() {
|
|
// Expect this to pass because the compiler knows there's a failed `*` import in `foo` that
|
|
// might have caused it.
|
|
foo::bar();
|
|
// FIXME: these two should *fail* because they can't be fixed by fixing the glob import in `foo`
|
|
ham(); // should error but doesn't
|
|
eggs(); // should error but doesn't
|
|
}
|