We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9755410 commit 097b5dbCopy full SHA for 097b5db
src/libcore/ptr.rs
@@ -2515,6 +2515,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2515
/// # Examples
2516
///
2517
/// ```
2518
+/// #![feature(ptr_hash)]
2519
/// use std::collections::hash_map::DefaultHasher;
2520
/// use std::hash::{Hash, Hasher};
2521
/// use std::ptr;
@@ -2523,7 +2524,6 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2523
2524
/// let five_ref = &five;
2525
2526
/// let mut hasher = DefaultHasher::new();
-/// #[feature(ptr_hash)]
2527
/// ptr::hash(five_ref, &mut hasher);
2528
/// let actual = hasher.finish();
2529
0 commit comments