()
| 22 | #[cfg(all(feature = "try_close", any(unix, target_os = "wasi")))] |
| 23 | #[test] |
| 24 | fn test_try_close() { |
| 25 | let file = std::fs::File::open("Cargo.toml").unwrap(); |
| 26 | let raw = file.into_raw_fd(); |
| 27 | unsafe { |
| 28 | rustix::io::try_close(raw).unwrap(); |
| 29 | } |
| 30 | } |
nothing calls this directly
no test coverage detected