diff --git a/src/doc/rustc-dev-guide/src/opaque-types-type-alias-impl-trait.md b/src/doc/rustc-dev-guide/src/opaque-types-type-alias-impl-trait.md index 0f0e8e87c321..9f20bfc708dc 100644 --- a/src/doc/rustc-dev-guide/src/opaque-types-type-alias-impl-trait.md +++ b/src/doc/rustc-dev-guide/src/opaque-types-type-alias-impl-trait.md @@ -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: ```