Commit c0f756e
committed
move text about checking of bounds on generics
Move text about the timing of checking of bounds on generics
from the "Where clauses" subsection to "Trait and lifetime
bounds", where it makes more sense. Split parts of the example
accordingly. Correct an error about when `Clone`, `Copy`, and
`Sized` trait bounds are checked.1 parent ab60513 commit c0f756e
2 files changed
+28
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 233 | + | |
242 | 234 | | |
243 | 235 | | |
244 | 236 | | |
245 | | - | |
246 | | - | |
| 237 | + | |
| 238 | + | |
247 | 239 | | |
248 | | - | |
249 | | - | |
250 | 240 | | |
251 | 241 | | |
252 | 242 | | |
| |||
303 | 293 | | |
304 | 294 | | |
305 | 295 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 296 | | |
310 | 297 | | |
311 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
142 | 162 | | |
143 | 163 | | |
144 | 164 | | |
| 165 | + | |
| 166 | + | |
145 | 167 | | |
146 | 168 | | |
| 169 | + | |
147 | 170 | | |
148 | 171 | | |
149 | 172 | | |
| 173 | + | |
150 | 174 | | |
| 175 | + | |
151 | 176 | | |
152 | 177 | | |
0 commit comments