Skip to content

Commit 9dcf78c

Browse files
committed
Improve some wording
Thanks to CE for this suggestion.
1 parent b1cda1e commit 9dcf78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2024/rpit-lifetime-capture.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn f_implicit<T, const C: usize>() -> impl Sized {}
7272
fn f_explicit<T, const C: usize>() -> impl Sized + use<T, C> {}
7373
```
7474

75-
In Rust 2021 and earlier editions, when the `use<..>` bound is not present, generic lifetime parameters are only implicitly captured when they appear syntactically within a bound in RPIT opaque types in the signature of bare functions and associated functions and methods within inherent impls. However, starting in Rust 2024, these in-scope generic lifetime parameters *are* implicitly captured. E.g.:
75+
In Rust 2021 and earlier editions, when the `use<..>` bound is not present, generic lifetime parameters are only captured when they appear syntactically within a bound in RPIT opaque types in the signature of bare functions and associated functions and methods within inherent impls. However, starting in Rust 2024, these in-scope generic lifetime parameters are unconditionally captured. E.g.:
7676

7777
```rust
7878
# #![feature(precise_capturing)]

0 commit comments

Comments
 (0)