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