]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-from-missing.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / imports / import-from-missing.rs
1 use spam::{ham, eggs}; //~ ERROR unresolved import `spam::eggs` [E0432]
2                        //~^ no `eggs` in `spam`
3
4 mod spam {
5     pub fn ham() { }
6 }
7
8 fn main() {
9     ham();
10     // Expect eggs to pass because the compiler inserts a fake name for it
11     eggs();
12 }