From 4cf7b33094d297fd439d04e9e663f0234f37187e Mon Sep 17 00:00:00 2001 From: Rock070 Date: Wed, 3 Jan 2024 00:19:11 +0800 Subject: [PATCH] Implement licensing_info method in Licensed trait --- exercises/15_traits/traits3.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/15_traits/traits3.rs b/exercises/15_traits/traits3.rs index 4e2b06b0..7b758747 100644 --- a/exercises/15_traits/traits3.rs +++ b/exercises/15_traits/traits3.rs @@ -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 {