summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-59896.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/unused/issue-59896.stderr')
-rw-r--r--tests/ui/lint/unused/issue-59896.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/lint/unused/issue-59896.stderr b/tests/ui/lint/unused/issue-59896.stderr
new file mode 100644
index 000000000..95b7938ae
--- /dev/null
+++ b/tests/ui/lint/unused/issue-59896.stderr
@@ -0,0 +1,17 @@
+error: the item `S` is imported redundantly
+ --> $DIR/issue-59896.rs:6:9
+ |
+LL | struct S;
+ | --------- the item `S` is already defined here
+...
+LL | use S;
+ | ^
+ |
+note: the lint level is defined here
+ --> $DIR/issue-59896.rs:1:9
+ |
+LL | #![deny(unused_imports)]
+ | ^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+