1 pub struct Struct<const N: usize>(());
3 impl<const N: usize> Struct<N> {
8 pub fn same_ty<const M: usize>(&self) -> (usize, usize) {
12 pub fn different_ty<const M: u8>(&self) -> (usize, u8) {
16 pub fn containing_ty<T, const M: u8>(&self) -> (usize, u8) {
17 (std::mem::size_of::<T>() + N, M)
20 pub fn we_have_to_go_deeper<const M: usize>(&self) -> Struct<M> {
26 fn foo<const M: usize>(&self) -> usize;
29 impl Foo for Struct<7> {
30 fn foo<const M: usize>(&self) -> usize {