codesamplex

Sample

Show that `default_value` does not convert a parser failure into the type default.

sha256:4219060d8b7de0185f0c2c229efd5d291c7174539c0221d94245dab6945914d0

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that `default_value` does not convert a parser failure into the type default. HOW
Packages
winnow 1.0.4
Environment
rust
Created
2026-08-16T15:21:23Z

Commonly assumed

Calling `Parser::default_value()` makes a parser yield the default value whenever the wrapped parser fails.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts