Source context

Program Rust

pfe_empty

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

267 }268 269 #[inline]270 pub(super) fn pfe_empty() -> ParseFloatError {271     ParseFloatError { kind: FloatErrorKind::Empty }272 }273 274 // Used in unit tests, keep public.275 // 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
Lines270:0–272:1
Program versionOriginal program