mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Fix fd test case
This commit is contained in:
parent
a50811a214
commit
08b70eda2c
@ -3,7 +3,7 @@ use core::mem::ManuallyDrop;
|
||||
|
||||
#[test]
|
||||
fn limit_vector_count() {
|
||||
let stdout = ManuallyDrop::new(FileDesc { fd: 1 });
|
||||
let stdout = ManuallyDrop::new(unsafe { FileDesc { fd: 1 } });
|
||||
let bufs = (0..1500).map(|_| IoSlice::new(&[])).collect::<Vec<_>>();
|
||||
assert!(stdout.write_vectored(&bufs).is_ok());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user