blob: 9bfbd1819c695cb2985eb238549d76cee2dc0038 [file] [edit]
#![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() {}