Commit 57f556c
committed
Add clarifications
In the text as revised, it wasn't clear what rule prevented a mutable
reference from appearing in the final value of a constant item, so
let's add a rule specifically for that.
Similarly, it may not be immediately clear what rule prevents a
reference to a lifetime-extended interior mutable temporary created in
the initializer, so let's add an admonition section describing how
other rules apply to prevent this.1 parent 24a4f32 commit 57f556c
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
51 | 73 | | |
52 | 74 | | |
53 | 75 | | |
| |||
0 commit comments