We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
T:Send
Mutex<T>
1 parent 1e71d2e commit 018eeb7Copy full SHA for 018eeb7
src/libstd/sync/mutex.rs
@@ -112,7 +112,7 @@ use fmt;
112
/// *guard += 1;
113
/// ```
114
#[stable(feature = "rust1", since = "1.0.0")]
115
-pub struct Mutex<T> {
+pub struct Mutex<T: Send> {
116
// Note that this static mutex is in a *box*, not inlined into the struct
117
// itself. Once a native mutex has been used once, its address can never
118
// change (it can't be moved). This mutex type can be safely moved at any
0 commit comments