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 00:57:10 -05: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();
}