We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d93036a commit ddb072bCopy full SHA for ddb072b
src/libstd/thread/local.rs
@@ -31,6 +31,10 @@ use mem;
31
/// within a thread, and values that implement [`Drop`] get destructed when a
32
/// thread exits. Some caveats apply, which are explained below.
33
///
34
+/// A `LocalKey`'s initializer cannot recursively depend on itself, and using
35
+/// a `LocalKey` in this way will cause the initializer to infinitely recurse
36
+/// on the first call to `with`.
37
+///
38
/// # Examples
39
40
/// ```
0 commit comments