mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-07 02:13:29 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
// traits3.rs
|
||||
//
|
||||
// Your task is to implement the Licensed trait for both structures and have
|
||||
// them return the same information without writing the same function twice.
|
||||
//
|
||||
// Consider what you can add to the Licensed trait.
|
||||
//
|
||||
// Execute `rustlings hint traits3` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
pub trait Licensed {
|
||||
fn licensing_info(&self) -> String;
|
||||
|
||||
Reference in New Issue
Block a user