rust/tests/crashes/118784.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
368 B
Rust
Raw Permalink Normal View History

2024-11-08 21:32:40 +01:00
//@ known-bug: #118784
//@ needs-rustc-debug-assertions
use std::collections::HashMap;
macro_rules! all_sync_send {
($ctor:expr, $($iter:expr),+) => ({
$(
let mut x = $ctor;
is_sync(x.$iter());
let mut y = $ctor;
is_send(y.$iter());
)+
})
}
fn main() {
all_sync_send!(HashMap, HashMap);
}