2022-09-28 03:45:09 -05:00
|
|
|
// issue #102317
|
2022-09-30 08:04:03 -05:00
|
|
|
//@ build-pass
|
2022-09-28 03:45:09 -05:00
|
|
|
//@ compile-flags: --edition 2021 -C opt-level=3 -Zvalidate-mir
|
|
|
|
|
|
|
|
struct SegmentJob;
|
|
|
|
|
|
|
|
impl Drop for SegmentJob {
|
|
|
|
fn drop(&mut self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub async fn run() -> Result<(), ()> {
|
|
|
|
let jobs = Vec::<SegmentJob>::new();
|
|
|
|
let Some(_job) = jobs.into_iter().next() else {
|
|
|
|
return Ok(())
|
|
|
|
};
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|