Impl trait in let bindings
You can also use impl Trait
in the type of a local variable:
This is equivalent to introducing a type alias impl trait with the scope of the enclosing function:
You can also use impl Trait
in the type of a local variable:
This is equivalent to introducing a type alias impl trait with the scope of the enclosing function: