Source context

Program Rust

pfe_empty

This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.

264 }265 266 #[inline]267 pub(super) fn pfe_empty() -> ParseFloatError {268     ParseFloatError { kind: FloatErrorKind::Empty }269 }270 271 // Used in unit tests, keep public.272 // This is much better than making FloatErrorKind and ParseFloatError::kind public.

Aeneas declaration

The Lean below was mechanically extracted by Aeneas from Rust.

def num.imp.dec2flt.pfe_empty : Result num.float_parse.ParseFloatError := do
  ok { kind := num.float_parse.FloatErrorKind.Empty }
Operations used here

ParseFloatError · Program Rust

Source details
Declarationnum.imp.dec2flt.pfe_empty
Filenum/imp/../../dec2flt/mod.rs
Lines267:0–269:1
Program versionPreparation 2