blob: 57022943e0fb628ac075a92d5079ee525a29c5a8 [file]
#![feature(no_core)]
#![no_core]
struct B<const M: u32> {}
impl<const M: u32> B<M> {
const M: u32 = M;
}
struct C;
impl<const M: u32> C { // { dg-error "unconstrained type parameter" }
const USE_M: u32 = M;
}