Skip to content

Commit 7a13537

Browse files
JohnTitorGankra
authored andcommitted
Apply review comments
1 parent b0ec725 commit 7a13537

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/coercions.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ They mostly exist to make Rust "just work" in more cases, and are largely harmle
66

77
For an exhaustive list of all the types of coercions, see the [Coercion types] section on the reference.
88

9-
## Cases where coercions do not perform
10-
11-
Note that we do not perform coercions when matching traits (except for receivers, see below).
9+
Note that we do not perform coercions when matching traits (except for receivers, see the [next page][dot-operator]).
1210
If there is an `impl` for some type `U` and `T` coerces to `U`, that does not constitute an implementation for `T`.
1311
For example, the following will not type check, even though it is OK to coerce `t` to `&T` and there is an `impl` for `&T`:
1412

@@ -25,7 +23,7 @@ fn main() {
2523
}
2624
```
2725

28-
which fails like the following:
26+
which fails like as follows:
2927

3028
```text
3129
error[E0277]: the trait bound `&mut i32: Trait` is not satisfied
@@ -43,3 +41,4 @@ error[E0277]: the trait bound `&mut i32: Trait` is not satisfied
4341
```
4442

4543
[Coercion types]: ../reference/type-coercions.html#coercion-types
44+
[dot-operator]: ./dot-operator.html

0 commit comments

Comments
 (0)