Skip to content

Commit 4884c2a

Browse files
authored
Merge pull request #21 from rust-rfcs/generic_const_fn_bounds
Explain new method default impl drawback
2 parents d18c76e + bad849f commit 4884c2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

const-generic-const-fn-bounds.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ A summary of the result of the discussion can be found at the bottom of [this bl
306306
# Drawbacks
307307
[drawbacks]: #drawbacks
308308

309-
It is not a fully general design that supports every possible use case,
310-
but it covers the most common cases. See also the alternatives.
309+
* It is not a fully general design that supports every possible use case,
310+
but it covers the most common cases. See also the alternatives.
311+
* It becomes a breaking change to add a new method to a trait, even if that method has a default
312+
impl. One needs to provide a `const` default impl to not make the change a breaking change.
311313

312314
# Rationale and alternatives
313315
[rationale-and-alternatives]: #rationale-and-alternatives

0 commit comments

Comments
 (0)