Auto merge of #26172 - nham:add_E0116, r=alexcrichton
Also improves the wording of the E0133 description. cc #24407
This commit is contained in:
commit
fc9e424550
5 changed files with 33 additions and 8 deletions
|
|
@ -1550,7 +1550,7 @@ methods in such an implementation can only be used as direct calls on the
|
|||
values of the type that the implementation targets. In such an implementation,
|
||||
the trait type and `for` after `impl` are omitted. Such implementations are
|
||||
limited to nominal types (enums, structs), and the implementation must appear
|
||||
in the same module or a sub-module as the `self` type:
|
||||
in the same crate as the `self` type:
|
||||
|
||||
```
|
||||
struct Point {x: i32, y: i32}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue