feat: traits done

This commit is contained in:
2026-09-11 17:37:48 +02:00
parent b94cdfd4c4
commit 8ded4cc8b5
5 changed files with 14 additions and 3 deletions
+3
View File
@@ -6,6 +6,9 @@ trait AppendBar {
impl AppendBar for String {
// TODO: Implement `AppendBar` for the type `String`.
fn append_bar(self) -> Self {
self + &String::from("Bar")
}
}
fn main() {