Skip to main content

MAXLEN_ZERO_CONTRACT_ERROR

Constant MAXLEN_ZERO_CONTRACT_ERROR 

Source
pub const MAXLEN_ZERO_CONTRACT_ERROR: &str = "$maxLen(0) is invalid";
Expand description

Build a FieldDef from a Slot field reader.

Shared by the struct-field loop and the union-arm group-leaf loop so the two can’t drift in how they resolve type names, sections, offsets, and annotations. Schema-contract error marker for a $maxLen(0) violation. compile_schemas promotes parse errors carrying this marker to a hard build failure (the maxLen contract says the build fails), while generic parse errors stay non-fatal warnings.