Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
imports
/
import-from-missing.rs
blob: 1dcc3a9013378dccc420c894c0d255ce41dec098 [
file
] [
log
] [
blame
]
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
();
}