2020-08-08 08:21:04 -05:00
|
|
|
// ignore-windows: No libc on Windows
|
|
|
|
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
|
|
|
|
extern crate libc;
|
|
|
|
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
|
|
let mut bytes = [0u8; 512];
|
|
|
|
unsafe {
|
2020-10-03 05:00:29 -05:00
|
|
|
libc::read(0, bytes.as_mut_ptr() as *mut libc::c_void, 512); //~ ERROR read not available when isolation is enabled
|
2020-08-08 08:21:04 -05:00
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|