// FIXME(arora-aman) add run-pass once 2229 is implemented
#![feature(capture_disjoint_fields)]
-//~^ WARNING the feature `capture_disjoint_fields` is incomplete
+//~^ WARNING: the feature `capture_disjoint_fields` is incomplete
+//~| NOTE: `#[warn(incomplete_features)]` on by default
+//~| NOTE: see issue #53488 <https://github.com/rust-lang/rust/issues/53488>
#![feature(rustc_attrs)]
struct Point {
let c = #[rustc_capture_analysis]
//~^ ERROR: attributes on expressions are experimental
+ //~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|| {
+ //~^ First Pass analysis includes:
+ //~| Min Capture analysis includes:
println!("{}", p.x);
- //~^ ERROR: Capturing p[(0, 0)] -> ImmBorrow
- //~^^ ERROR: Min Capture p[(0, 0)] -> ImmBorrow
+ //~^ NOTE: Capturing p[(0, 0)] -> ImmBorrow
+ //~| NOTE: Min Capture p[(0, 0)] -> ImmBorrow
};
// `c` should only capture `p.x`, therefore mutating `p.y` is allowed.