From f06d53827d0a05018aa640c3ab8759071b18a70b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 8 Dec 2024 06:54:36 -0800 Subject: [PATCH] Add note about type and const generics --- src/doc/src/reference/semver.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md index b48fdc3469d..232f7f3ac50 100644 --- a/src/doc/src/reference/semver.md +++ b/src/doc/src/reference/semver.md @@ -1654,6 +1654,8 @@ See the [edition guide][rpit-capture-guide] and the [reference][rpit-reference] It is a minor change to capture fewer generic parameters in an RPIT. +> 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. + [RPIT]: ../../reference/types/impl-trait.md#abstract-return-types [rpit-capture-guide]: ../../edition-guide/rust-2024/rpit-lifetime-capture.html [rpit-reference]: ../../reference/types/impl-trait.md#capturing