Skip to content

Commit d595f66

Browse files
authored
Update C-NEWTYPE-HIDE now impl Trait is shipped
1 parent 05a1d5e commit d595f66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/future-proofing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ less to the client. The client does not know _how_ the result iterator is
108108
constructed or represented, which means the representation can change in the
109109
future without breaking client code.
110110

111-
In the future the same thing can be accomplished more concisely with the [`impl
112-
Trait`] feature but this is currently unstable.
111+
As of Rust 1.26 the same thing can be accomplished more concisely with the [`impl
112+
Trait`] feature. See the ["`impl Trait` for returning complex types with ease"][impl-trait-2]
113+
section of the Edition Guide for more details.
113114

114115
[`impl Trait`]: https://github.com/rust-lang/rfcs/blob/master/text/1522-conservative-impl-trait.md
116+
[impl-trait-2]: https://rust-lang-nursery.github.io/edition-guide/rust-2018/trait-system/impl-trait-for-returning-complex-types-with-ease.html
115117

116118
```rust
117119
#![feature(conservative_impl_trait)]

0 commit comments

Comments
 (0)