Skip to content

Commit

Permalink
Add 81199
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Feb 11, 2021
1 parent cd87d7d commit 01e1613
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ices/81199.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#[repr(C)]
union PtrRepr<T: ?Sized> {
const_ptr: *const T,
mut_ptr: *mut T,
components: PtrComponents<T>,
}

#[repr(C)]
struct PtrComponents<T: Pointee + ?Sized> {
data_address: *const (),
metadata: <T as Pointee>::Metadata,
}



pub trait Pointee {
type Metadata;
}

0 comments on commit 01e1613

Please sign in to comment.