15 lines
439 B
Rust
15 lines
439 B
Rust
|
use how::*;
|
||
|
|
||
|
fn main0() -> Result<()> {
|
||
|
Err(How::new("The engine broke down")
|
||
|
.context("While driving down a road".chain(format!("Where the road is {}", "Main Street")))
|
||
|
.context(
|
||
|
"While driving to a location".chain(format!("Where the location is {}", "the Mall")),
|
||
|
)
|
||
|
.context(format!("While in the car with {:?}", ["Mom", "Dad"])))?
|
||
|
}
|
||
|
|
||
|
fn main() -> TerminationResult {
|
||
|
main0().into()
|
||
|
}
|