File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ impl<R> Volatile<R> {
53
53
///
54
54
/// While it is possible to construct `Volatile` instances from arbitrary values (including
55
55
/// non-reference values), most of the methods are only available when the wrapped type is
56
- /// a reference. There are also special methods for some valus, for example slicing methods
57
- /// if the wrapped value is a slice.
56
+ /// a reference. The only reason that we don't forbid non-reference types in the constructor
57
+ /// functions is that the Rust compiler does not support trait bounds on generic `const`
58
+ /// functions yet. When this becomes possible, we will release a new version of this library
59
+ /// with removed support for non-references. For these reasons it is not recommended to use
60
+ /// the `Volatile` type only with references.
58
61
///
59
62
/// ## Example
60
63
///
You can’t perform that action at this time.
0 commit comments