Given the following code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=edadec50c25bbafc952c63f878b76af5
The current output is:
error: crate root imports need to be explicitly named: `use crate as name;`
--> src/lib.rs:1:5
|
1 | use crate::{self};
| ^^^^^
warning: unused import: `self`
--> src/lib.rs:1:13
|
1 | use crate::{self};
| ^^^^
|
= note: `#[warn(unused_imports)]` on by default
Ideally the output should look like:
error: crate root imports need to be explicitly named: `self as name`
--> src/lib.rs:1:5
|
1 | use crate::{self};
| ^^^^
This happens on both stable and the latest nightly.
Given the following code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=edadec50c25bbafc952c63f878b76af5
The current output is:
Ideally the output should look like:
This happens on both stable and the latest nightly.