ref-stable-lru 0.2.2

An LRU Cache implementation with compile-time reference stability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[test]
fn tests() {
    let t = trybuild::TestCases::new();

    t.compile_fail("tests/ui/double-get-without-scope.rs");
    t.pass("tests/ui/double-get-in-scope.rs");
    t.compile_fail("tests/ui/put-while-holding-ref.rs");
    t.pass("tests/ui/len-while-holding-mut.rs");
    t.compile_fail("tests/ui/handle-with-wrong-perm.rs");
    t.pass("tests/ui/drop-handle-while-holding-ref.rs");
    t.pass("tests/ui/concurrent-use-refs.rs");
}