// This test verifies that invalid operators in size expressions
// produce a compile-time error.
usebebytes::BeBytes;#[cfg(not(feature ="std"))]externcrate alloc;#[derive(BeBytes, Debug, PartialEq)]structInvalidOperator{length:u16,
// Error: Bitwise operators not supported in size expressions
#[bebytes(size ="length & 0xFF")]data:Vec<u8>,
}fnmain(){}