Closed
Description
In an example like this one (playground):
#![warn(rust_2018_idioms)]
mod bar {
pub fn x() { }
}
mod baz {
use bar::x;
}
fn main() {
}
we get the following output in Rust 2018:
error[E0432]: unresolved import `bar`
--> src/main.rs:8:9
|
8 | use bar::x;
| ^^^ Did you mean `crate::bar`?
It'd be nice to have an additional note:
error[E0432]: unresolved import `bar`
--> src/main.rs:8:9
|
8 | use bar::x;
| ^^^ Did you mean `crate::bar`?
|
| = note: `use` statements changed in Rust 2018; read more at XXX
where XXX
is probably https://rust-lang-nursery.github.io/edition-guide/ ?