3 #![feature(rustc_attrs)]
17 let mut a
= Parent { b: Child {c: String::new(), d: String::new()}
};
19 let c
= #[rustc_capture_analysis]
20 //~^ ERROR: attributes on expressions are experimental
21 //~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
23 //~^ First Pass analysis includes:
24 //~| Min Capture analysis includes:
26 //~^ NOTE: Capturing a[(0, 0)] -> ByValue
27 //~| NOTE: Min Capture a[(0, 0)] -> ByValue
28 println
!("{:?}", a
.b
.c
);
29 //~^ NOTE: Capturing a[(0, 0),(0, 0)] -> ImmBorrow