diff options
| author | Ralf Jung <post@ralfj.de> | 2025-01-14 17:10:56 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-01-14 17:28:33 +0100 |
| commit | f3cf39f3bebf5bbbe5be5631fb56332f16805c57 (patch) | |
| tree | eab6a559e5f0e429dcf0bf64cd5692a3879fdeb8 /library/std/src/os/wasi/io/tests.rs | |
| parent | c2ed28443592adf74c6375514adac49a0d801a8a (diff) | |
| download | rust-f3cf39f3bebf5bbbe5be5631fb56332f16805c57.tar.gz rust-f3cf39f3bebf5bbbe5be5631fb56332f16805c57.zip | |
wasi/io: remove dead files
Diffstat (limited to 'library/std/src/os/wasi/io/tests.rs')
| -rw-r--r-- | library/std/src/os/wasi/io/tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/os/wasi/io/tests.rs b/library/std/src/os/wasi/io/tests.rs new file mode 100644 index 00000000000..418274752b0 --- /dev/null +++ b/library/std/src/os/wasi/io/tests.rs @@ -0,0 +1,11 @@ +use crate::mem::size_of; +use crate::os::wasi::io::RawFd; + +#[test] +fn test_raw_fd_layout() { + // `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. + assert_eq!(size_of::<RawFd>(), 4); +} |
