// This test verifies that #[bits] attribute cannot be used on non-numeric types.
// Bit fields only make sense for integer types.
usebebytes::BeBytes;#[cfg(not(feature ="std"))]externcrate alloc;#[derive(BeBytes, Debug, PartialEq)]structBitsOnNonNumeric{valid:u8,
// Error: Cannot use #[bits] on String type
#[bits(4)]invalid: String,
#[bits(4)]padding:u8,
}fnmain(){}