Skip to content

Commit 1bd4072

Browse files
authored
Add question about Drop::drop calls
1 parent 58fbcd7 commit 1bd4072

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

const-generic-const-fn-bounds.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,9 @@ of writing this RFC) most definitely not const.
152152

153153
This would go in hand with the current scheme for const functions, which may also be called
154154
at runtime with runtime arguments, but are checked for soundness as if they were called in
155-
a const context.
155+
a const context.
156+
157+
## Drop
158+
159+
Should we also allow `(SomeDropType, 42).1` as an expression if `SomeDropType`'s `Drop` impl
160+
was declared with `const impl Drop`?

0 commit comments

Comments
 (0)