2020-12-06 17:01:35 -06:00
|
|
|
use zed::bar;
|
|
|
|
use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432]
|
|
|
|
//~| no `baz` in `zed`
|
|
|
|
//~| HELP a similar name exists in the module
|
|
|
|
//~| SUGGESTION bar
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2020-12-06 17:01:35 -06:00
|
|
|
mod zed {
|
|
|
|
pub fn bar() { println!("bar"); }
|
|
|
|
use foo; //~ ERROR unresolved import `foo` [E0432]
|
|
|
|
//~^ no `foo` in the root
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
2011-06-29 11:13:48 -05:00
|
|
|
|
2020-12-06 17:01:35 -06:00
|
|
|
fn main() {
|
|
|
|
zed::foo(); //~ ERROR `foo` is private
|
|
|
|
bar();
|
|
|
|
}
|