Skip to content

Commit

Permalink
Merge pull request #1150 from notriddle/patch-1
Browse files Browse the repository at this point in the history
Fix compatibility with Rust 2018
  • Loading branch information
marioidival authored Feb 19, 2019
2 parents 494b481 + 3ce2e9c commit ffcec6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generics/assoc_items/the_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct Container(i32, i32);
// A trait which checks if 2 items are stored inside of container.
// Also retrieves first or last value.
trait Contains<A, B> {
fn contains(&self, &A, &B) -> bool; // Explicitly requires `A` and `B`.
fn contains(&self, _: &A, _: &B) -> bool; // Explicitly requires `A` and `B`.
fn first(&self) -> i32; // Doesn't explicitly require `A` or `B`.
fn last(&self) -> i32; // Doesn't explicitly require `A` or `B`.
}
Expand Down

0 comments on commit ffcec6e

Please sign in to comment.