// This test verifies that referencing a non-existent field in a size expression
// produces a clear compile-time error.
usebebytes::BeBytes;#[cfg(not(feature ="std"))]externcrate alloc;#[derive(BeBytes, Debug, PartialEq)]structInvalidSizeRef{length:u16,
// Error: 'nonexistent' field doesn't exist
#[bebytes(size ="nonexistent")]data:Vec<u8>,
}fnmain(){}