File: send_sync.rs

package info (click to toggle)
rust-sysinfo 0.37.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,264 kB
  • sloc: ansic: 158; makefile: 27
file content (12 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
// Take a look at the license at the top of the repository in the LICENSE file.

#[test]
#[allow(clippy::extra_unused_type_parameters)]
#[cfg(feature = "system")]
fn test_send_sync() {
    fn is_send<T: Send>() {}
    fn is_sync<T: Sync>() {}

    is_send::<sysinfo::System>();
    is_sync::<sysinfo::System>();
}