3 #![feature(const_generics)]
4 #![allow(incomplete_features, const_evaluatable_unchecked)]
6 use std::marker::PhantomData;
12 impl<T: Copy> DataHolder<T> {
13 const ITEM_IS_COPY: [(); 1 - {
15 const VALUE: bool = false;
18 impl<__Type: ?Sized> NotCopy for __Type {}
20 struct IsCopy<__Type: ?Sized>(PhantomData<__Type>);
22 impl<__Type> IsCopy<__Type>
26 const VALUE: bool = true;