Skip to content

Commit 1d9f541

Browse files
committed
Add Drawback elobaration to the generic case
1 parent c2ebeaf commit 1d9f541

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

text/0000-rvalue_static_promotion.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ However, they might complicated reasoning about the rules more,
175175
especially with the last one also being possibly confusing in regards to
176176
side-effects.
177177

178-
Not doing this mostly means relying on `static` and `const` items to create
179-
`'static` references, while empty-array expressions would remain special cased.
180-
It would also not be possible to safely create `&'static mut` references to zero-sized
178+
Not doing this means:
179+
180+
- Relying on `static` and `const` items to create `'static` references, which won't work in generics.
181+
- Empty-array expressions would remain special cased.
182+
- It would also not be possible to safely create `&'static mut` references to zero-sized
181183
types, though that part could also be achieved by allowing mutable references to
182184
zero-sized types in constants.
183185

0 commit comments

Comments
 (0)