summaryrefslogtreecommitdiff
path: root/exercises/modules/modules2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/modules/modules2.rs')
-rw-r--r--exercises/modules/modules2.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/exercises/modules/modules2.rs b/exercises/modules/modules2.rs
index fde439d..687bb78 100644
--- a/exercises/modules/modules2.rs
+++ b/exercises/modules/modules2.rs
@@ -1,11 +1,15 @@
// modules2.rs
+// You can bring module paths into scopes and provide new names for them with the
+// 'use' and 'as' keywords. Fix these 'use' statments to make the code compile.
// Make me compile! Execute `rustlings hint modules2` for hints :)
// I AM NOT DONE
mod delicious_snacks {
- use self::fruits::PEAR as fruit;
- use self::veggies::CUCUMBER as veggie;
+
+ // TODO: Fix these use statments
+ use self::fruits::PEAR as ???
+ use self::veggies::CUCUMBER as ???
mod fruits {
pub const PEAR: &'static str = "Pear";