Skip to content

Commit

Permalink
Fix broken links.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Jan 28, 2025
1 parent e138cf7 commit 84f896f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/items/associated-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ If the type of the `self` parameter is specified, it is limited to types resolvi
to a type implementing the [`Receiver`] trait with a `Target` associated type
matching the implementing type. Typically, this means the type itself, a
reference to it, or a smart pointer referring to it (such as [`Box<Self>`]
or [`Arc<Self>`]).
or `Arc<Self>`).

This can also include the contextual type alias `Self`, other type aliases,
or associated type projections resolving to the implementing type.
Expand Down Expand Up @@ -555,7 +555,6 @@ fn main() {
[_OuterAttribute_]: ../attributes.md
[_TypeAlias_]: type-aliases.md
[_Visibility_]: ../visibility-and-privacy.md
[`Arc<Self>`]: ../special-types-and-traits.md#arct
[`Box<Self>`]: ../special-types-and-traits.md#boxt
[`Pin<P>`]: ../special-types-and-traits.md#pinp
[`Rc<Self>`]: ../special-types-and-traits.md#rct
Expand Down
12 changes: 5 additions & 7 deletions src/items/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ r[items.traits.dyn-compatible.associated-functions]
* Dispatchable functions must:
* Not have any type parameters (although lifetime parameters are allowed).
* Be a [method] that does not use `Self` except in the type of the receiver.
* Have a receiver with one of the following types:
* Have a receiver implementing [`Receiver`], for example one of the following types:
* `&Self` (i.e. `&self`)
* `&mut Self` (i.e `&mut self`)
* [`Box<Self>`]
* [`Rc<Self>`]
* [`Arc<Self>`]
* [`Pin<P>`] where `P` is one of the types above
* `Rc<Self>`
* `Arc<Self>`
* `Pin<P>` where `P` is one of the types above
* Not have an opaque return type; that is,
* Not be an `async fn` (which has a hidden `Future` type).
* Not have a return position `impl Trait` type (`fn example(&self) -> impl Trait`).
Expand Down Expand Up @@ -383,10 +383,8 @@ fn main() {
[trait implementation]: implementations.md#trait-implementations
[`Send`]: ../special-types-and-traits.md#send
[`Sync`]: ../special-types-and-traits.md#sync
[`Arc<Self>`]: ../special-types-and-traits.md#arct
[`Box<Self>`]: ../special-types-and-traits.md#boxt
[`Pin<P>`]: ../special-types-and-traits.md#pinp
[`Rc<Self>`]: ../special-types-and-traits.md#rct
[`Receiver`]: ../special-types-and-traits.md#receiver
[`async`]: functions.md#async-functions
[`const`]: functions.md#const-functions
[type namespace]: ../names/namespaces.md
Expand Down

0 comments on commit 84f896f

Please sign in to comment.