// edition:2021// run-pass// Test that edition 2021 enables disjoint capture by default.structPoint{x: i32,y: i32,}fnmain(){letmutp=Point{x: 10,y: 10};letc=||{println!("{}",p.x);};// `c` should only capture `p.x`, therefore mutating `p.y` is allowed.letpy=&mutp.y;c();*py=20;}