clarify why define_opaque isnt needed
This commit is contained in:
parent
108bfc13fe
commit
e58de3a54c
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ impl Baz for Quux {
|
|||
```
|
||||
|
||||
For this you would also need to use `nightly` and the (different) `#![feature(impl_trait_in_assoc_type)]` annotation.
|
||||
Note that you don't need a `#[define_opaque(Foo)]` on the method anymore.
|
||||
Note that you don't need a `#[define_opaque(Foo)]` on the method anymore as the opaque type is mentioned in the function signature (behind the associated type).
|
||||
Complete example:
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue