We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f4efc commit 11e48ebCopy full SHA for 11e48eb
src/libcore/pin.rs
@@ -207,7 +207,7 @@
207
//! tricky when interior mutability is involved. For example, imagine `RefCell`
208
//! would have a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
209
//! Then we could do the following:
210
-//! ```ignore
+//! ```compile_fail
211
//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {
212
//! { let p = rc.as_mut().get_pin_mut(); } // here we get pinned access to the `T`
213
//! let rc_shr: &RefCell<T> = rc.into_ref().get_ref();
0 commit comments