Skip to content

Commit 121a3c0

Browse files
authored
Update 0000-default-field-values.md
mention that `Default` `impl`s are not `~const` today
1 parent 013a03c commit 121a3c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/0000-default-field-values.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,9 @@ values, it would be possible to allow non-const values as well, potentially
19241924
allowed but linted against. Expanding the kind of values that can be accepted
19251925
can be expanded in the future.
19261926

1927+
Of note, `Default` implementations are not currently `~const`, but that is
1928+
something to be addressed by making them `~const` when suitable instead.
1929+
19271930
## Lint against explicit `impl Default` when `#[derive(Default)]` would be ok
19281931

19291932
As a future improvement, we could nudge implementors towards leveraging the

0 commit comments

Comments
 (0)