summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/use-redundant/use-redundant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/use-redundant/use-redundant.stderr')
-rw-r--r--tests/ui/lint/use-redundant/use-redundant.stderr29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/ui/lint/use-redundant/use-redundant.stderr b/tests/ui/lint/use-redundant/use-redundant.stderr
new file mode 100644
index 000000000..c861a1956
--- /dev/null
+++ b/tests/ui/lint/use-redundant/use-redundant.stderr
@@ -0,0 +1,29 @@
+warning: unused import: `m1::*`
+ --> $DIR/use-redundant.rs:17:5
+ |
+LL | use m1::*;
+ | ^^^^^
+ |
+note: the lint level is defined here
+ --> $DIR/use-redundant.rs:2:9
+ |
+LL | #![warn(unused_imports)]
+ | ^^^^^^^^^^^^^^
+
+warning: unused import: `m2::*`
+ --> $DIR/use-redundant.rs:18:5
+ |
+LL | use m2::*;
+ | ^^^^^
+
+warning: the item `Bar` is imported redundantly
+ --> $DIR/use-redundant.rs:21:9
+ |
+LL | use crate::foo::Bar;
+ | --------------- the item `Bar` is already imported here
+...
+LL | use crate::foo::Bar;
+ | ^^^^^^^^^^^^^^^
+
+warning: 3 warnings emitted
+