You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnerr(err:&Error) -> &(dyn std::error::Error + 'static){&**err
}#[emit::span(err,"add {a} and {b}")]fnadd(a:String,b:String) -> Result<String,Error>{let a = parse(&a)?;let b = parse(&b)?;let r = a + b;Ok::<String,Error>(format(r))}
will end up expanding to a match arm like:
Err(err) => (err)(&err)
where we've shadowed the err variable. We need to bind the err control parameter to an alternative identifier.
The text was updated successfully, but these errors were encountered:
will end up expanding to a match arm like:
where we've shadowed the
err
variable. We need to bind theerr
control parameter to an alternative identifier.The text was updated successfully, but these errors were encountered: