// This test verifies that #[FromField] cannot reference non-numeric fields
// since vector size must be a number.
usebebytes::BeBytes;#[cfg(not(feature ="std"))]externcrate alloc;#[derive(BeBytes, Debug, PartialEq)]structFromFieldNonNumeric{name: String,
// Error: 'name' is not a numeric field
#[FromField(name)]data:Vec<u8>,
}fnmain(){}