Skip to content

Commit 93a5254

Browse files
authored
clarify why define_opaque isnt needed
1 parent 489c271 commit 93a5254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opaque-types-type-alias-impl-trait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Baz for Quux {
8585
```
8686

8787
For this you would also need to use `nightly` and the (different) `#![feature(impl_trait_in_assoc_type)]` annotation.
88-
Note that you don't need a `#[define_opaque(Foo)]` on the method anymore.
88+
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).
8989
Complete example:
9090

9191
```

0 commit comments

Comments
 (0)