3 #![feature(rustc_attrs)]
11 let mut p = Point { x: 10, y: 10 };
13 let c = #[rustc_capture_analysis]
14 //~^ ERROR: attributes on expressions are experimental
15 //~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
17 //~^ First Pass analysis includes:
18 //~| Min Capture analysis includes:
20 //~^ NOTE: Capturing p[(0, 0)] -> ImmBorrow
21 //~| NOTE: Min Capture p[(0, 0)] -> ImmBorrow
24 // `c` should only capture `p.x`, therefore mutating `p.y` is allowed.