1.26.0 prerelease testing

The release notes say:

impl Trait is now stable allowing you to have abstract return types. e.g. fn foo() -> impl Iterator<Item=u8> or fn open(path: impl AsRef<Path>).

However, only the first of those two is an "abstract return type"; the second is just a convenient shorthand for a generic parameter.

1 Like