Skip to content

Commit 0209758

Browse files
authored
Added compile times to the list of drawbacks
1 parent f68b5bb commit 0209758

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/0000-dyn-trait-syntax.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ The functionality of `dyn Trait` is identical to today's trait object syntax.
8181

8282
- `&dyn Trait` might give the impression that `&dyn` is a third type of reference alongside `&` and `&mut`.
8383

84+
- In general, favoring generics over trait objects makes Rust code take longer to compile, and this change may encourage more of that.
85+
8486
# Rationale and Alternatives
8587
[alternatives]: #alternatives
8688

0 commit comments

Comments
 (0)