mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
18 lines
421 B
Rust
18 lines
421 B
Rust
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
|
|
|
|
|
|
mod zed {
|
|
pub fn bar() { println!("bar"); }
|
|
use foo; //~ ERROR unresolved import `foo` [E0432]
|
|
//~^ no `foo` in the root
|
|
}
|
|
|
|
fn main() {
|
|
zed::foo(); //~ ERROR `foo` is private
|
|
bar();
|
|
}
|