Closed KodrAus closed 2 months ago
Using emit::span on a method returning impl Trait produces:
emit::span
impl Trait
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
We shouldn't try infer the type of the function block unless we're going to match it as a result with the ok_lvl or err_lvl attributes.
ok_lvl
err_lvl
Using
emit::span
on a method returningimpl Trait
produces:We shouldn't try infer the type of the function block unless we're going to match it as a result with the
ok_lvl
orerr_lvl
attributes.