// !!!!! Note - autogenerated file! - edit reject/make-rejects instead !!!!! // // Copyright 2021 Ian Jackson and contributors // SPDX-License-Identifier: GPL-3.0-or-later // There is NO WARRANTY. use partial_borrow::prelude::*; #[derive(PartialBorrow,Default)] struct X { a: usize } fn main(){ let mut x = X::default(); let d: &mut partial!(X ! a) = x.as_mut(); let _o: &mut X = &mut **d; }