2016-08-22 13:57:10 +08:00
|
|
|
use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432]
|
|
|
|
//~^ no `eggs` in `spam`
|
2011-08-16 15:21:30 -07:00
|
|
|
|
|
|
|
mod spam {
|
2013-01-30 14:30:22 -08:00
|
|
|
pub fn ham() { }
|
2011-08-16 15:21:30 -07:00
|
|
|
}
|
|
|
|
|
2016-01-31 19:26:16 -08:00
|
|
|
fn main() {
|
|
|
|
ham();
|
|
|
|
// Expect eggs to pass because the compiler inserts a fake name for it
|
|
|
|
eggs();
|
|
|
|
}
|