mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-21 23:57:30 +02:00
Highlight change in traits4 solution
This commit is contained in:
@@ -11,6 +11,7 @@ impl Licensed for SomeSoftware {}
|
||||
impl Licensed for OtherSoftware {}
|
||||
|
||||
fn compare_license_types(software1: impl Licensed, software2: impl Licensed) -> bool {
|
||||
// ^^^^^^^^^^^^^ ^^^^^^^^^^^^^
|
||||
software1.licensing_info() == software2.licensing_info()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user