mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Fix fd test case
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#[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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user