File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1328,7 +1328,6 @@ impl<T> SizedTypeProperties for T {}
1328
1328
/// ```
1329
1329
/// #![feature(offset_of)]
1330
1330
///
1331
- /// use std::mem;
1332
1331
/// struct Wrapper<T, U>(T, U);
1333
1332
///
1334
1333
/// type A = Wrapper<u8, u8>;
@@ -1345,7 +1344,7 @@ impl<T> SizedTypeProperties for T {}
1345
1344
/// // Not necessarily identical even though `u8` and `U8` have the same layout!
1346
1345
/// // assert!(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
1347
1346
///
1348
- /// struct Empty<T>(PhantomData<T>);
1347
+ /// struct Empty<T>(core::marker:: PhantomData<T>);
1349
1348
///
1350
1349
/// // Not necessarily identical even though `PhantomData` always has the same layout!
1351
1350
/// // assert!(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0));
You can’t perform that action at this time.
0 commit comments