We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a50811a commit 08b70edCopy full SHA for 08b70ed
library/std/src/sys/unix/fd/tests.rs
@@ -3,7 +3,7 @@ use core::mem::ManuallyDrop;
3
4
#[test]
5
fn limit_vector_count() {
6
- let stdout = ManuallyDrop::new(FileDesc { fd: 1 });
+ let stdout = ManuallyDrop::new(unsafe { FileDesc { fd: 1 } });
7
let bufs = (0..1500).map(|_| IoSlice::new(&[])).collect::<Vec<_>>();
8
assert!(stdout.write_vectored(&bufs).is_ok());
9
}
0 commit comments