title: How can I convert a reference to any type to a reference to an array of length 1?
body: <p>I have an instance of type <code>&amp;T</code>. How do I cast it to <code>&amp;[T; 1]</code>? Something like <code>std::slice::from_ref</code>, except that it should return an array, instead of a slice.</p>