File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -349,8 +349,8 @@ to it.
349
349
350
350
## Lifetime Elision
351
351
352
- Rust supports powerful local type inference in the bodies of functions but not in their item signatures.
353
- It's forbidden to allow reasoning about types based on the item signature alone .
352
+ Rust supports powerful local type inference in the bodies of functions, but it
353
+ deliberately does not perform any reasoning about types for item signatures .
354
354
However, for ergonomic reasons, a very restricted secondary inference algorithm called
355
355
“lifetime elision” does apply when judging lifetimes. Lifetime elision is concerned solely with inferring
356
356
lifetime parameters using three easily memorizable and unambiguous rules. This means lifetime elision
You can’t perform that action at this time.
0 commit comments