Skip to content

Commit cad22d6

Browse files
Added parameters names to trait method declaration
In accordance with RFC #1685, parameters in trait method declarations are no longer allowed to be anonymous. rust-lang/rfcs#1685
1 parent 871643a commit cad22d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics/assoc_items/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ trait Contains {
4141
type A;
4242
type B;
4343
44-
fn contains(&self, &Self::A, &Self::B) -> bool;
44+
fn contains(&self, _: &Self::A, _: &Self::B) -> bool;
4545
fn first(&self) -> i32;
4646
fn last(&self) -> i32;
4747
}

0 commit comments

Comments
 (0)