Implement licensing_info method in Licensed trait

This commit is contained in:
Rock070 2024-01-03 00:19:11 +08:00
parent 46060cf08f
commit 4cf7b33094

View File

@ -8,10 +8,10 @@
// Execute `rustlings hint traits3` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
pub trait Licensed {
fn licensing_info(&self) -> String;
fn licensing_info(&self) -> String {
String::from("Some information")
}
}
struct SomeSoftware {