Skip to content

Commit

Permalink
Merge pull request rust-lang#1076 from Tostapunk/main
Browse files Browse the repository at this point in the history
fix(traits5.rs): wrong line number
  • Loading branch information
shadows-withal authored Jul 18, 2022
2 parents 8a0c6cf + 7035d67 commit d46a97e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/traits/traits5.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// traits5.rs
//
// Your task is to replace the '??' sections so the code compiles.
// Don't change any line other than 27.
// Don't change any line other than the marked one.
// Execute `rustlings hint traits5` or use the `hint` watch subcommand for a hint.

// I AM NOT DONE
Expand All @@ -25,6 +25,7 @@ struct SomeStruct {
impl SomeTrait for SomeStruct {}
impl OtherTrait for SomeStruct {}

// YOU MAY ONLY CHANGE THE NEXT LINE
fn some_func(item: ??) -> bool {
item.some_function() && item.other_function()
}
Expand Down

0 comments on commit d46a97e

Please sign in to comment.