We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b690a0d + c48bca9 commit b31e3b8Copy full SHA for b31e3b8
1 file changed
src/flow_control/for.md
@@ -80,7 +80,7 @@ fn main() {
80
data is provided. Once the collection has been consumed it is no longer
81
available for reuse as it has been 'moved' within the loop.
82
83
-```rust,editable,ignore,mdbook-runnable
+```rust,editable
84
fn main() {
85
let names = vec!["Bob", "Frank", "Ferris"];
86
@@ -91,8 +91,9 @@ fn main() {
91
}
92
93
94
- println!("names: {:?}", names);
95
- // FIXME ^ Comment out this line
+ // `names` has been 'moved' and can no longer be used.
+ // Try uncommenting the line below to see the compiler error:
96
+ // println!("names: {:?}", names);
97
98
```
99
0 commit comments