Require a main function in all exercises

This commit is contained in:
mo8it
2024-04-17 22:46:21 +02:00
parent d83cc69afe
commit cb9f1ac9ce
39 changed files with 199 additions and 44 deletions
+4
View File
@@ -14,6 +14,10 @@ fn maybe_icecream(time_of_day: u16) -> Option<u16> {
???
}
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;
+4
View File
@@ -3,6 +3,10 @@
// Execute `rustlings hint options2` or use the `hint` watch subcommand for a
// hint.
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
#[test]