1 2 3 4 5 6 7 8 9 10 11 12
use borrowscope_macro::trace_borrow; #[trace_borrow] fn test_consuming_method() { let s = String::from("hello"); let bytes = s.into_bytes(); assert_eq!(bytes.len(), 5); } fn main() { test_consuming_method(); }