1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-10-03 01:28:39 -04:00

Require a main function in all exercises

This commit is contained in:
mo8it 2024-04-17 22:46:21 +02:00
commit cb9f1ac9ce
39 changed files with 199 additions and 44 deletions
exercises/05_vecs

View file

@ -14,6 +14,10 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
(a, v)
}
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;

View file

@ -26,6 +26,10 @@ fn vec_map(v: &Vec<i32>) -> Vec<i32> {
}).collect()
}
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;