borrowscope-macro 0.1.1

Procedural macros for BorrowScope ownership tracking
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use borrowscope_macro::trace_borrow;

#[trace_borrow]
fn test_nested_tuple() {
    let (a, (b, c)) = (1, (2, 3));
    assert_eq!(a, 1);
    assert_eq!(b, 2);
    assert_eq!(c, 3);
}

fn main() {
    test_nested_tuple();
}