-
-
Save rust-play/e10ba5a143f7c30018230953ac26e149 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait ReportCore { | |
fn different_for_each_type(..); | |
} | |
trait Report : ReportCore { | |
fn same_for_many_types(..); | |
} | |
trait StatReport : ReportCore { | |
fn another_method(..); | |
} | |
impl<T: StatReport> Report for T { | |
pub fn same_for_many_types(..) { .. } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment