summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs')
-rw-r--r--src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs b/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs
deleted file mode 100644
index 27e7fabf1..000000000
--- a/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// run-pass
-// edition:2021
-
-const LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED: i32 = 0x01;
-const LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT: i32 = 0x02;
-
-pub fn hotplug_callback(event: i32) {
- let _ = || {
- match event {
- LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED => (),
- LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT => (),
- _ => (),
- };
- };
-}
-
-fn main() {
- hotplug_callback(1);
-}