borrowscope-macro 0.1.1

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

#[trace_borrow]
fn test_simple_move() {
    let s1 = String::from("hello");
    let s2 = s1;
    assert_eq!(s2, "hello");
}

fn main() {
    test_simple_move();
}