Commit 220b5f8
committed
Add caveat on
In a footnote, we describe how there are various ways that `Captures`
can be defined. However, we should point out that `Captures<'a> +
Captures<'b>` is not equivalent to `Captures<(&'a (), &'b ())>` as
lifetimes do not participate in trait selection in Rust. This is in
fact the main reason that we defined `Captures` to accept a type
parameter rather than a lifetime parameter in this document. Let's
include this caveat in the footnote.
(Thanks to @compiler-errors for reminding everyone of this.)Captures<'a> + Captures<'b> in footnote1 parent a624afa commit 220b5f8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments