Improve warning
This commit is contained in:
parent
2cebbe2599
commit
2245d10fac
3 changed files with 18 additions and 17 deletions
|
|
@ -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
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue