Add missing mut.

Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
Mara Bos 2020-10-15 21:45:09 +02:00 committed by Mark Rousskov
parent 735b0754b6
commit e68b265a22

View file

@ -795,7 +795,7 @@ impl<T: ?Sized> Pin<&'static T> {
}
}
impl<T: ?Sized> Pin<&'static T> {
impl<T: ?Sized> Pin<&'static mut T> {
/// Get a pinned mutable reference from a static mutable reference.
///
/// This is safe, because `T` is borrowed for the `'static` lifetime, which