2018-08-30 01:33:38 -05:00
|
|
|
// Just instantiate some data structures to make sure we got all their foreign items covered.
|
|
|
|
// Requires full MIR on Windows.
|
2018-08-23 12:28:48 -05:00
|
|
|
|
|
|
|
use std::sync;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let m = sync::Mutex::new(0);
|
|
|
|
let _ = m.lock();
|
|
|
|
drop(m);
|
|
|
|
|
2018-08-30 02:20:08 -05:00
|
|
|
// We don't provide RwLock on Windows
|
|
|
|
#[cfg(not(target_os = "windows"))]
|
|
|
|
{
|
|
|
|
let rw = sync::RwLock::new(0);
|
|
|
|
let _ = rw.read();
|
|
|
|
let _ = rw.write();
|
|
|
|
drop(rw);
|
|
|
|
}
|
2018-08-23 12:28:48 -05:00
|
|
|
}
|