generativity 1.2.1

Generation of unique invariant lifetimes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use generativity::{Id, make_guard};

fn assert_eq_lt<'id>(_: Id<'id>, _: Id<'id>) {}

fn diverging_fn() -> ! {
    make_guard!(g_a);
    make_guard!(g_b);

    let a: Id = g_a.into();
    let b: Id = g_b.into();

    assert_eq_lt(a, b);

    loop {}
}

fn main() {}