Traits and impls
You can use impl Trait
in argument position in traits and impls, but you must use it consistently in both. For example, the following is legal:
But the following would be illegal:
You can use impl Trait
in argument position in traits and impls, but you must use it consistently in both. For example, the following is legal:
But the following would be illegal: