Skip to content

Commit 11e48eb

Browse files
committed
please the mericless tidy, oh tidy
1 parent c8f4efc commit 11e48eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
//! tricky when interior mutability is involved. For example, imagine `RefCell`
208208
//! would have a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
209209
//! Then we could do the following:
210-
//! ```ignore
210+
//! ```compile_fail
211211
//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {
212212
//! { let p = rc.as_mut().get_pin_mut(); } // here we get pinned access to the `T`
213213
//! let rc_shr: &RefCell<T> = rc.into_ref().get_ref();

0 commit comments

Comments
 (0)