File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ compiler can infer a sensible default choice.
5
5
6
6
## Lifetime elision in functions
7
7
8
- In order to make common patterns more ergonomic, Rust allows lifetime argument
9
- to be * elided* in [ function item] , [ function pointer] and [ closure trait]
10
- signatures. The following rules are used to infer lifetime parameters for
11
- elided lifetimes. It is an error to elide lifetime parameters that cannot be
12
- inferred. The placeholder lifetime, ` '_ ` , can also be used to have a lifetime
13
- inferred in the same way. For lifetimes in paths, using ` '_ ` is preferred.
14
- Trait object lifetimes follow different rules discussed
8
+ In order to make common patterns more ergonomic, lifetime arguments can be
9
+ * elided* in [ function item] , [ function pointer] and [ closure trait] signatures.
10
+ The following rules are used to infer lifetime parameters for elided lifetimes.
11
+ It is an error to elide lifetime parameters that cannot be inferred. The
12
+ placeholder lifetime, ` '_ ` , can also be used to have a lifetime inferred in the
13
+ same way. For lifetimes in paths, using ` '_ ` is preferred. Trait object
14
+ lifetimes follow different rules discussed
15
15
[ below] ( #default-trait-object-lifetimes ) .
16
16
17
17
* Each elided lifetime in the parameters becomes a distinct lifetime parameter.
You can’t perform that action at this time.
0 commit comments