rust/tests/ui/imports/import-from-missing.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
268 B
Rust
Raw Normal View History

2016-08-22 05:57:10 +00:00
use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432]
//~^ 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();
}