Skip to content

Commit ffcec6e

Browse files
authored
Merge pull request #1150 from notriddle/patch-1
Fix compatibility with Rust 2018
2 parents 494b481 + 3ce2e9c commit ffcec6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics/assoc_items/the_problem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct Container(i32, i32);
1818
// A trait which checks if 2 items are stored inside of container.
1919
// Also retrieves first or last value.
2020
trait Contains<A, B> {
21-
fn contains(&self, &A, &B) -> bool; // Explicitly requires `A` and `B`.
21+
fn contains(&self, _: &A, _: &B) -> bool; // Explicitly requires `A` and `B`.
2222
fn first(&self) -> i32; // Doesn't explicitly require `A` or `B`.
2323
fn last(&self) -> i32; // Doesn't explicitly require `A` or `B`.
2424
}

0 commit comments

Comments
 (0)