1 #![feature(const_type_id)]
2 #![feature(generic_const_exprs)]
3 #![feature(core_intrinsics)]
4 #![allow(incomplete_features)]
8 struct If<const B: bool>;
10 impl True for If<true> {}
12 fn consume<T: 'static>(_val: T)
14 If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
15 //~^ ERROR: can't compare
21 If<{ TypeId::of::<T>() != TypeId::of::<()>() }>: True,
22 //~^ ERROR: can't compare