2 // Test that we use the elaborated predicates from traits
3 // to satisfy const evaluatable predicates.
4 #![feature(generic_const_exprs)]
5 #![allow(incomplete_features)]
10 [(); size_of::<Self>()]: Sized,
17 fn foo<T: Foo>() -> [u8; size_of::<T>()] {
22 assert_eq!(foo::<u32>(), [0; 4]);
23 assert_eq!(foo::<u64>(), [0; 8]);