How is impl Trait in the return position different?

Continuing the discussion from Impl Trait vs trait bound syntax:

Unfortunately this was not mentioned in the original thread.

The reference gives a short introduction to the two, and their differences, on this page:

Impl trait type - The Rust Reference

1 Like