We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 494b481 + 3ce2e9c commit ffcec6eCopy full SHA for ffcec6e
src/generics/assoc_items/the_problem.md
@@ -18,7 +18,7 @@ struct Container(i32, i32);
18
// A trait which checks if 2 items are stored inside of container.
19
// Also retrieves first or last value.
20
trait Contains<A, B> {
21
- fn contains(&self, &A, &B) -> bool; // Explicitly requires `A` and `B`.
+ fn contains(&self, _: &A, _: &B) -> bool; // Explicitly requires `A` and `B`.
22
fn first(&self) -> i32; // Doesn't explicitly require `A` or `B`.
23
fn last(&self) -> i32; // Doesn't explicitly require `A` or `B`.
24
}
0 commit comments