3 ms·
Ok. It looks like the new feature allows library authors to express their intentions with simpler code, and thus error messages will also be simpler. Looks good
by Buttons840 9y ago
Ok. It looks like the new feature allows library authors to express their intentions with simpler code, and thus error messages will also be simpler. Looks good, thanks for taking the time to answer my question.
- steveklabnik 9y agoNo problem! It also does enable some other things too. For example, closures have a type that's not writable, so fn foo() -> impl Fn(i32) -> i32 { |x| x + 1 } can be written, since closures implement the Fn trait, but there's no way to write the type directly.