mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
362 B
Rust
20 lines
362 B
Rust
// issue #102317
|
|
//@ build-pass
|
|
//@ 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() {}
|