From 11e48ebb29777fe8e8e23b7a538bb43d40fbdac3 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 19 Feb 2019 21:18:56 +0100 Subject: [PATCH] please the mericless tidy, oh tidy --- src/libcore/pin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 8acc215d0173..5056005bcd77 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -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(rc: Pin<&mut RefCell) { //! { let p = rc.as_mut().get_pin_mut(); } // here we get pinned access to the `T` //! let rc_shr: &RefCell = rc.into_ref().get_ref();