Closed
Description
Given the following code:
use crate::{self};
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.