Skip to content

Commit

Permalink
Merge pull request #1041 from kupiakos/patch-1
Browse files Browse the repository at this point in the history
Add missing generic in "perfect derive" paragraph
  • Loading branch information
rylev authored Oct 24, 2022
2 parents e6460a2 + 5b42f3c commit d174cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/inside-rust/2022-04-04-lang-roadmap-2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ to discuss, or send a private message to nikomatsakis.
matching a `String` with a `"str"`.
- Perfect derive: determine the precise conditions for generic type
parameters based on the types of a struct fields. For instance,
`#[derive(Clone)] struct MyStruct(Rc<T>)` would not require `T: Clone`,
`#[derive(Clone)] struct MyStruct<T>(Rc<T>)` would not require `T: Clone`,
because `Rc<T>` can be cloned without it.
- Autoref, operators, and clones: Generic methods that operate on
references sometimes necessitate types like `&u32`; since `u32` is
Expand Down

0 comments on commit d174cb6

Please sign in to comment.