mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 15:26:29 +00:00
parent
ab291a1fcd
commit
b0e070c743
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
// traits4.rs
|
||||
//
|
||||
// Your task is to replace the '??' sections so the code compiles.
|
||||
// Don't change any line other than 21.
|
||||
// Don't change any line other than the marked one.
|
||||
// Execute `rustlings hint traits4` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
@ -19,6 +19,7 @@ struct OtherSoftware {}
|
|||
impl Licensed for SomeSoftware {}
|
||||
impl Licensed for OtherSoftware {}
|
||||
|
||||
// YOU MAY ONLY CHANGE THE NEXT LINE
|
||||
fn compare_license_types(software: ??, software_two: ??) -> bool {
|
||||
software.licensing_info() == software_two.licensing_info()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue