Skip to content

Commit f06d538

Browse files
committed
Add note about type and const generics
1 parent dc96159 commit f06d538

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/src/reference/semver.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,8 @@ See the [edition guide][rpit-capture-guide] and the [reference][rpit-reference]
16541654

16551655
It is a minor change to capture fewer generic parameters in an RPIT.
16561656

1657+
> Note: All in-scope type and const generic parameters must be either implicitly captured (no `+ use<…>` specified) or explicitly captured (must be listed in `+ use<…>`), and thus currently it is not allowed to change what is captured of those kinds of generics.
1658+
16571659
[RPIT]: ../../reference/types/impl-trait.md#abstract-return-types
16581660
[rpit-capture-guide]: ../../edition-guide/rust-2024/rpit-lifetime-capture.html
16591661
[rpit-reference]: ../../reference/types/impl-trait.md#capturing

0 commit comments

Comments
 (0)