t2t-clock 0.1.1

clocks that read the time: the OS's wall and monotonic clocks, the CPU's counter, and clocks set by hand.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! The misuses the types refuse, each a fixture that must not compile.

// A loom run tests the models alone.
#![cfg(not(loom))]

#[cfg(test)]
mod tests {
    use trybuild::TestCases;

    #[test]
    fn each_misuse_fails_to_compile() {
        TestCases::new().compile_fail("tests/compile_fail/*.rs");
    }
}