We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crate::
std::
1 parent 187ee5c commit 0377a63Copy full SHA for 0377a63
library/std/src/os/wasi/io/fd/tests.rs
@@ -1,11 +1,11 @@
1
-use std::mem::size_of;
2
-use std::os::wasi::io::RawFd;
+use crate::mem::size_of;
+use crate::os::wasi::io::RawFd;
3
4
#[test]
5
fn test_raw_fd_layout() {
6
- /// `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
7
- /// and `rustc_layout_scalar_valid_range_end`, with values that depend on
8
- /// the bit width of `RawFd`. If this ever changes, those values will need
9
- /// to be updated.
+ // `OwnedFd` and `BorrowedFd` use `rustc_layout_scalar_valid_range_start`
+ // and `rustc_layout_scalar_valid_range_end`, with values that depend on
+ // the bit width of `RawFd`. If this ever changes, those values will need
+ // to be updated.
10
assert_eq!(size_of::<RawFd>(), 4);
11
}
0 commit comments