Skip to content

Commit 23593f6

Browse files
committed
add links
1 parent 7a97567 commit 23593f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

posts/2024-09-05-impl-trait-capture-rules.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ fn indices<T>(
216216
}
217217
```
218218

219-
This implementation limitation is only temporary and will hopefully be lifted soon! You can follow the current status at [tracking issue #123](XXX).
219+
This implementation limitation is only temporary and will hopefully be lifted soon! You can follow the current status at [tracking issue #130031](https://github.com/rust-lang/rust/issues/130031).
220220

221221
**Alternative: `'static` bounds.** For the special case of capturing **no** references at all, it is also possible to use a `'static` bound, like so ([try it yourself](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=3054bbf64652cb4890d56ac03b47a35c)):
222222

@@ -241,3 +241,8 @@ Thanks to editions, we are able to address that without breaking existing code.
241241
* most code will "just work" in Rust 2024, avoiding confusing errors;
242242
* for the code where annotations are required, we now have a more powerful annotation mechanism that can let you say exactly what you need to say.
243243

244+
## Appendix: Relevant links
245+
246+
* Precise capture was proposed in [RFC #3617](https://github.com/rust-lang/rfcs/pull/3617), which left an unresolved question regarding syntax, and its tracking issue was [#123432](https://github.com/rust-lang/rust/issues/123432).
247+
* The unresolved syntax question was resolved in [issue #125836](https://github.com/rust-lang/rust/issues/125836), which introduced the `+ use<>` notation used in this post.
248+
* The implementation limitation is tracked in [#130031](https://github.com/rust-lang/rust/issues/130031).

0 commit comments

Comments
 (0)