1 #![feature(specialization)]
2 #![allow(incomplete_features)]
4 pub trait ReflectDrop {
5 const REFLECT_DROP: bool = false;
8 impl<T> ReflectDrop for T where T: Clone {}
10 pub trait PinDropInternal {
18 default impl<T> ReflectDrop for Bears<T> {}
20 impl<T: Sized> PinDropInternal for Bears<T> {
25 let _ = [(); 0 - !!(<Bears<T> as ReflectDrop>::REFLECT_DROP) as usize]; //~ ERROR constant expression depends on a generic parameter