| #![feature(min_generic_const_args)] | |
| struct S<const N: usize>; | |
| impl<const N: usize> S<N> { | |
| const Q: usize = 2; | |
| fn foo(_: S<{ const { const { Self::Q } } }>) {} | |
| //~^ ERROR generic `Self` types are currently not permitted in anonymous constants | |
| } | |
| fn main() {} |