please the mericless tidy, oh tidy
This commit is contained in:
parent
c8f4efc006
commit
11e48ebb29
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue