rust/tests/ui/const-generics/mgca/inherent-const-gating.rs

14 lines
218 B
Rust

#![feature(min_generic_const_args)]
#![allow(incomplete_features)]
struct S;
impl S {
const N: usize = 42;
}
fn main() {
let _x: [(); S::N] = todo!();
//~^ ERROR inherent associated types are unstable
}