summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-30730.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/unused/issue-30730.rs')
-rw-r--r--tests/ui/lint/unused/issue-30730.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/lint/unused/issue-30730.rs b/tests/ui/lint/unused/issue-30730.rs
new file mode 100644
index 000000000..d6be90c81
--- /dev/null
+++ b/tests/ui/lint/unused/issue-30730.rs
@@ -0,0 +1,5 @@
+#![warn(unused)]
+#![deny(warnings)]
+use std::thread;
+//~^ ERROR: unused import
+fn main() {}