summaryrefslogtreecommitdiff
path: root/exercises/07_structs/structs2.rs
diff options
context:
space:
mode:
authorMo <76752051+mo8it@users.noreply.github.com>2024-04-18 13:02:35 +0200
committerGitHub <noreply@github.com>2024-04-18 13:02:35 +0200
commit819dea250034a5658d0fe3306f6c35fc49961e17 (patch)
tree122060cdc0ef3f81d367e0afc7b0e3e9d29d33ee /exercises/07_structs/structs2.rs
parentc613b70363c60c6f4305d09c7394c96cdc6b69e4 (diff)
parent01e6732e4d920d9a1859e05fa28382e4307571af (diff)
Merge pull request #1949 from rust-lang/third-party-exercises
Support for third-party exercises
Diffstat (limited to 'exercises/07_structs/structs2.rs')
-rw-r--r--exercises/07_structs/structs2.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/exercises/07_structs/structs2.rs b/exercises/07_structs/structs2.rs
index a7a2dec..451dbe7 100644
--- a/exercises/07_structs/structs2.rs
+++ b/exercises/07_structs/structs2.rs
@@ -1,9 +1,4 @@
-// structs2.rs
-//
// Address all the TODOs to make the tests pass!
-//
-// Execute `rustlings hint structs2` or use the `hint` watch subcommand for a
-// hint.
#[derive(Debug)]
struct Order {
@@ -28,6 +23,10 @@ fn create_order_template() -> Order {
}
}
+fn main() {
+ // You can optionally experiment here.
+}
+
#[cfg(test)]
mod tests {
use super::*;