mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
Merge pull request #1076 from Tostapunk/main
fix(traits5.rs): wrong line number
This commit is contained in:
commit
d46a97ef97
|
@ -1,7 +1,7 @@
|
||||||
// traits5.rs
|
// traits5.rs
|
||||||
//
|
//
|
||||||
// Your task is to replace the '??' sections so the code compiles.
|
// 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.
|
// Execute `rustlings hint traits5` or use the `hint` watch subcommand for a hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
@ -25,6 +25,7 @@ struct SomeStruct {
|
||||||
impl SomeTrait for SomeStruct {}
|
impl SomeTrait for SomeStruct {}
|
||||||
impl OtherTrait for SomeStruct {}
|
impl OtherTrait for SomeStruct {}
|
||||||
|
|
||||||
|
// YOU MAY ONLY CHANGE THE NEXT LINE
|
||||||
fn some_func(item: ??) -> bool {
|
fn some_func(item: ??) -> bool {
|
||||||
item.some_function() && item.other_function()
|
item.some_function() && item.other_function()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue