Commit c652829
committed
don't depend on
NB: in `&[]` the array is "const promoted", making this reference have
type `&'static [T; 0]`. this allows us to return that reference from
any function returning a reference to a slice or array, because
`&'static _` can coerce to `&'short_lifetime _`.
it's not necessary to have a field for this.[!Default; 0]: Default impl1 parent c3a1b34 commit c652829
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
0 commit comments