mirror of
https://github.com/notohh/rustlings.git
synced 2025-09-22 13:33:14 -04:00
Require a main function in all exercises
This commit is contained in:
parent
d83cc69afe
commit
cb9f1ac9ce
39 changed files with 199 additions and 44 deletions
exercises/07_structs
|
@ -28,6 +28,10 @@ fn create_order_template() -> Order {
|
|||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// You can optionally experiment here.
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue