1 // FIXME(arora-aman) add run-pass once 2229 is implemented
3 #![feature(capture_disjoint_fields)]
4 //~^ WARNING the feature `capture_disjoint_fields` is incomplete
5 #![feature(rustc_attrs)]
7 // Test to ensure that min analysis meets capture kind for all paths captured.
16 let mut p = Point { x: 10, y: 20 };
23 // Requirements met when p is captured via MutBorrow
25 let mut c = #[rustc_capture_analysis]
26 //~^ ERROR: attributes on expressions are experimental