3 #![feature(rustc_attrs)]
25 p: Point { x: 1,y: 2 },
26 q: Point { x: 3,y: 4 },
29 p: Point { x: 1,y: 2 },
30 q: Point { x: 3,y: 4 },
34 let c = #[rustc_capture_analysis]
35 //~^ ERROR: attributes on expressions are experimental
36 //~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
38 //~^ ERROR: First Pass analysis includes:
39 //~| ERROR: Min Capture analysis includes:
41 //~^ NOTE: Capturing p[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
43 //~^ NOTE: Capturing p[(1, 0),(1, 0),(1, 0)] -> MutBorrow
44 //~| NOTE: p[] captured as MutBorrow here
46 //~^ NOTE: Capturing p[] -> ImmBorrow
47 //~| NOTE: Min Capture p[] -> MutBorrow
48 //~| NOTE: p[] used here