You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/trpl/concurrency.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ fn main() {
162
162
This gives us an error:
163
163
164
164
```text
165
-
12:17 error: capture of moved value: `data`
165
+
8:17 error: capture of moved value: `data`
166
166
data[i] += 1;
167
167
^~~~
168
168
```
@@ -201,10 +201,10 @@ fn main() {
201
201
Here's the error:
202
202
203
203
```text
204
-
<anon>:11:9: 11:22 error: the trait `core::marker::Send` is not implemented for the type `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` [E0277]
204
+
<anon>:9:9: 9:22 error: the trait `core::marker::Send` is not implemented for the type `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` [E0277]
205
205
<anon>:11 thread::spawn(move || {
206
206
^~~~~~~~~~~~~
207
-
<anon>:11:9: 11:22 note: `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` cannot be sent between threads safely
207
+
<anon>:9:9: 9:22 note: `std::sync::mutex::MutexGuard<'_, collections::vec::Vec<u32>>` cannot be sent between threads safely
0 commit comments