You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-24 17:56:45 +02:00
@ -37,7 +37,7 @@ fn main() {
|
||||
is simple.
|
||||
|
||||
- Implementations of the trait do not need to cover all possible type
|
||||
parameters. Here, `Foo::From("hello")` would not compile because there is no
|
||||
parameters. Here, `Foo::from("hello")` would not compile because there is no
|
||||
`From<&str>` implementation for `Foo`.
|
||||
|
||||
- Generic traits take types as "input", while associated types are a kind of
|
||||
|
Reference in New Issue
Block a user