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 {}
13281328/// ```
13291329/// #![feature(offset_of)]
13301330///
1331- /// use std::mem;
13321331/// struct Wrapper<T, U>(T, U);
13331332///
13341333/// type A = Wrapper<u8, u8>;
@@ -1345,7 +1344,7 @@ impl<T> SizedTypeProperties for T {}
13451344/// // Not necessarily identical even though `u8` and `U8` have the same layout!
13461345/// // assert!(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
13471346///
1348- /// struct Empty<T>(PhantomData<T>);
1347+ /// struct Empty<T>(core::marker:: PhantomData<T>);
13491348///
13501349/// // Not necessarily identical even though `PhantomData` always has the same layout!
13511350/// // 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