Improve warning

This commit is contained in:
Fabian Drinck 2019-03-16 17:38:12 +01:00
parent 2cebbe2599
commit 2245d10fac
3 changed files with 18 additions and 17 deletions

View file

@ -1,14 +1,11 @@
warning: the item `Bar` is imported redundantly
--> $DIR/use-redundant.rs:14:9
|
LL | use crate::foo::Bar; //~ WARNING redundant import
LL | use crate::foo::Bar;
| --------------- the item `Bar` was already imported here
...
LL | use crate::foo::Bar;
| ^^^^^^^^^^^^^^^
|
= note: #[warn(redundant_import)] on by default
warning: another import
--> $DIR/use-redundant.rs:3:5
|
LL | use crate::foo::Bar; //~ WARNING first import
| ^^^^^^^^^^^^^^^