We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c5e71 commit 5cdaba6Copy full SHA for 5cdaba6
promotion.md
@@ -97,7 +97,7 @@ compile-time instead of run-time should not alter program behavior.
97
98
### 4. Drop
99
100
-Expressions containing types that implement `Drop` (or have a field implementing `Drop`)
+Expressions containing "needs drop" types
101
can never be promoted. If such an expression were promoted, the `Drop` impl would
102
never get called on the value, even though the user did not explicitly request such
103
behavior by using an explicit `const` or `static` item.
0 commit comments