diff options
Diffstat (limited to 'src/test/ui/union/issue-81199.rs')
-rw-r--r-- | src/test/ui/union/issue-81199.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/union/issue-81199.rs b/src/test/ui/union/issue-81199.rs deleted file mode 100644 index 628e7c6ed..000000000 --- a/src/test/ui/union/issue-81199.rs +++ /dev/null @@ -1,21 +0,0 @@ -#[repr(C)] -union PtrRepr<T: ?Sized> { - const_ptr: *const T, - mut_ptr: *mut T, - components: PtrComponents<T>, - //~^ ERROR the trait bound -} - -#[repr(C)] -struct PtrComponents<T: Pointee + ?Sized> { - data_address: *const (), - metadata: <T as Pointee>::Metadata, -} - - - -pub trait Pointee { - type Metadata; -} - -fn main() {} |