1
Fork 0

please the mericless tidy, oh tidy

This commit is contained in:
Ralf Jung 2019-02-19 21:18:56 +01:00
parent c8f4efc006
commit 11e48ebb29

View file

@ -207,7 +207,7 @@
//! tricky when interior mutability is involved. For example, imagine `RefCell`
//! would have a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
//! Then we could do the following:
//! ```ignore
//! ```compile_fail
//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {
//! { let p = rc.as_mut().get_pin_mut(); } // here we get pinned access to the `T`
//! let rc_shr: &RefCell<T> = rc.into_ref().get_ref();