Skip to content

Commit eb0f9ce

Browse files
committed
add note about breaking change
1 parent d0434b2 commit eb0f9ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/items/associated-items.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ let circle_shape = Circle::new();
134134
let bounding_box = circle_shape.bounding_box();
135135
```
136136

137+
> NOTE: Until the 2018 edition, it was possible to declare trait methods with
138+
> anonymous parameters (e.g. `fn foo(u8)`). This was deprecated and disallowed
139+
> in the 2018 edition. All parameters must have an argument name. See [RFC
140+
> 1685](https://github.com/rust-lang/rfcs/pull/1685).
141+
137142
## Associated Types
138143

139144
*Associated types* are [type aliases] associated with another type. Associated

0 commit comments

Comments
 (0)