summaryrefslogtreecommitdiff
path: root/my_crate/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'my_crate/src/main.rs')
-rw-r--r--my_crate/src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/my_crate/src/main.rs b/my_crate/src/main.rs
new file mode 100644
index 0000000..f7a50d3
--- /dev/null
+++ b/my_crate/src/main.rs
@@ -0,0 +1,8 @@
+use my_crate::PrimaryColor;
+use my_crate::mix;
+
+fn main() {
+ let red = PrimaryColor::Red;
+ let yellow = PrimaryColor::Yellow;
+ mix(red, yellow);
+}