Commit 832291f
committed
Add normative example on
Under the rules of this RFC, we automatically capture all lifetime
parameters in scope of an RPIT-like `impl Trait` opaque type.
This includes lifetimes that are in scope due to `for<..>` binders for
higher ranked trait bounds (HRTBs). However, we did not describe this
explicitly and we did not have an example of this. Let's describe
this and add an example.
(Thanks to @aliemjay for pointing this out.)for<..> capturing1 parent 220b5f8 commit 832291f
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
282 | 309 | | |
283 | 310 | | |
284 | 311 | | |
| |||
0 commit comments