diff --git a/po/da.po b/po/da.po
index 4975c935d1ef..88b3dbe8534a 100644
--- a/po/da.po
+++ b/po/da.po
@@ -2659,8 +2659,6 @@ msgstr ""
#: src/exercises/day-2/health-statistics.md:13
msgid ""
"```rust,should_panic\n"
-"// TODO: remove this when you're done with your implementation.\n"
-"#![allow(unused_variables, dead_code)]"
msgstr ""
#: src/exercises/day-1/for-loops.md:56
@@ -5125,8 +5123,6 @@ msgstr ""
#: src/exercises/day-2/strings-iterators.md:12
msgid ""
"```rust\n"
-"// TODO: remove this when you're done with your implementation.\n"
-"#![allow(unused_variables, dead_code)]"
msgstr ""
#: src/exercises/day-2/points-polygons.md:11
@@ -7343,9 +7339,7 @@ msgstr ""
#: src/exercises/day-3/simple-gui.md:18
#: src/exercises/day-3/safe-ffi-wrapper.md:25
msgid ""
-"```rust,should_panic\n"
-"// TODO: remove this when you're done with your implementation.\n"
-"#![allow(unused_imports, unused_variables, dead_code)]"
+"```rust,should_panic"
msgstr ""
#: src/exercises/day-3/simple-gui.md:22
diff --git a/src/exercises/day-1/book-library.md b/src/exercises/day-1/book-library.md
index 34f9b0b1aca3..3623e6ae6787 100644
--- a/src/exercises/day-1/book-library.md
+++ b/src/exercises/day-1/book-library.md
@@ -18,8 +18,6 @@ Use this to create a library application. Copy the code below to
and update the types to make it compile:
```rust,should_panic
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
{{#include book-library.rs:setup}}
diff --git a/src/exercises/day-1/for-loops.md b/src/exercises/day-1/for-loops.md
index c4824cb7dedf..e0c41adccf26 100644
--- a/src/exercises/day-1/for-loops.md
+++ b/src/exercises/day-1/for-loops.md
@@ -50,14 +50,14 @@ Copy the code below to and implement the
functions:
```rust,should_panic
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
{{#include for-loops.rs:transpose}}
+ println!("Use matrix {:?}", matrix);
unimplemented!()
}
{{#include for-loops.rs:pretty_print}}
+ println!("Use matrix {:?}", matrix);
unimplemented!()
}
diff --git a/src/exercises/day-2/health-statistics.md b/src/exercises/day-2/health-statistics.md
index 800adb9c19e0..0209d336412f 100644
--- a/src/exercises/day-2/health-statistics.md
+++ b/src/exercises/day-2/health-statistics.md
@@ -6,8 +6,6 @@ Copy the code below to and fill in the missing
methods:
```rust,should_panic
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
{{#include ../../../third_party/rust-on-exercism/health-statistics.rs}}
diff --git a/src/exercises/day-2/luhn.md b/src/exercises/day-2/luhn.md
index 648f222254f6..05646072c251 100644
--- a/src/exercises/day-2/luhn.md
+++ b/src/exercises/day-2/luhn.md
@@ -21,10 +21,8 @@ function:
```rust
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
-
{{#include luhn.rs:luhn}}
+ println!("{cc_number}");
unimplemented!()
}
diff --git a/src/exercises/day-2/points-polygons.md b/src/exercises/day-2/points-polygons.md
index 08b4d2767895..fea9eec30dbe 100644
--- a/src/exercises/day-2/points-polygons.md
+++ b/src/exercises/day-2/points-polygons.md
@@ -5,8 +5,6 @@ to and fill in the missing methods to make the
tests pass:
```rust
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
{{#include points-polygons.rs:Point}}
// add fields
diff --git a/src/exercises/day-2/strings-iterators.md b/src/exercises/day-2/strings-iterators.md
index fd92acdf9808..41f3275b7a1c 100644
--- a/src/exercises/day-2/strings-iterators.md
+++ b/src/exercises/day-2/strings-iterators.md
@@ -10,10 +10,9 @@ pass. Try avoiding allocating a `Vec` for your intermediate results:
```rust
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_variables, dead_code)]
{{#include strings-iterators.rs:prefix_matches}}
+ println!("Use parameters {prefix} and {request_path}");
unimplemented!()
}
diff --git a/src/exercises/day-3/safe-ffi-wrapper.md b/src/exercises/day-3/safe-ffi-wrapper.md
index 7965add6e99e..9ed767cc615c 100644
--- a/src/exercises/day-3/safe-ffi-wrapper.md
+++ b/src/exercises/day-3/safe-ffi-wrapper.md
@@ -23,22 +23,23 @@ Copy the code below to and fill in the missing
functions and methods:
```rust,should_panic
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_imports, unused_variables, dead_code)]
{{#include safe-ffi-wrapper.rs:ffi}}
{{#include safe-ffi-wrapper.rs:DirectoryIterator}}
+ print!("The path {:?}", path);
unimplemented!()
}
}
{{#include safe-ffi-wrapper.rs:Iterator}}
+ print!("The path {:?}", self.path);
unimplemented!()
}
}
{{#include safe-ffi-wrapper.rs:Drop}}
+ print!("The path {:?}", self.path);
unimplemented!()
}
}
diff --git a/src/exercises/day-3/simple-gui.md b/src/exercises/day-3/simple-gui.md
index 2d35ef150e12..d466401da041 100644
--- a/src/exercises/day-3/simple-gui.md
+++ b/src/exercises/day-3/simple-gui.md
@@ -16,8 +16,6 @@ Copy the code below to , fill in the missing
`draw_into` methods so that you implement the `Widget` trait:
```rust,should_panic
-// TODO: remove this when you're done with your implementation.
-#![allow(unused_imports, unused_variables, dead_code)]
{{#include simple-gui.rs:setup}}
diff --git a/third_party/rust-on-exercism/health-statistics.rs b/third_party/rust-on-exercism/health-statistics.rs
index ddd5e905d5c3..b3f719ec1263 100644
--- a/third_party/rust-on-exercism/health-statistics.rs
+++ b/third_party/rust-on-exercism/health-statistics.rs
@@ -6,26 +6,32 @@ struct User {
impl User {
pub fn new(name: String, age: u32, weight: f32) -> Self {
+ println!("Use name {:?} age {:?} and weight{:?}", name, age, weight);
unimplemented!()
}
pub fn name(&self) -> &str {
+ println!("Use name {:?}", self.name);
unimplemented!()
}
pub fn age(&self) -> u32 {
+ println!("Use name {:?}", self.name);
unimplemented!()
}
pub fn weight(&self) -> f32 {
+ println!("Use name {:?}", self.name);
unimplemented!()
}
pub fn set_age(&mut self, new_age: u32) {
+ println!("Use name {:?} and new age {:?}", self.name, new_age);
unimplemented!()
}
pub fn set_weight(&mut self, new_weight: f32) {
+ println!("Use name {:?} and new age {:?}", self.name, new_weight);
unimplemented!()
}
}