blob: e001ae5fac8db7841be31c274f4d7e12d0bd1980 [file] [log] [blame] [edit]
//@ edition:2015
//@ dont-require-annotations: NOTE
use zed::bar;
use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432]
//~| NOTE no `baz` in `zed`
//~| HELP a similar name exists in the module
//~| SUGGESTION bar
mod zed {
pub fn bar() { println!("bar"); }
use foo; //~ ERROR unresolved import `foo` [E0432]
//~^ NOTE no `foo` in the root
}
fn main() {
zed::foo(); //~ ERROR `foo` is private
bar();
}