Skip to content

Instantly share code, notes, and snippets.

@leopard627
Created January 18, 2019 16:00
Show Gist options
  • Save leopard627/538e8b818893a435eddb8a165d4fef9e to your computer and use it in GitHub Desktop.
Save leopard627/538e8b818893a435eddb8a165d4fef9e to your computer and use it in GitHub Desktop.
enum DDD {
s(String)
}
enum AAA {
TellMe(DDD)
}
enum BBB {
TellMe(AAA)
}
enum CCC {
TellMe(BBB)
}
impl CCC {
fn call(&self) {
println!("I'm CCC!!");
}
}
#[test]
fn weird_test() {
let m = CCC::TellMe(BBB::TellMe(AAA::TellMe(DDD::s(String::from("Hello World!")))));
m.call();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment