// check-pass #![feature(lazy_normalization_consts)] #![allow(incomplete_features)] pub struct X(P, Q); pub struct L(T); impl L { const S: usize = 1; } impl X::S]> {} //~^ WARN cannot use constants which depend on generic parameters //~| WARN this was previously accepted by the compiler but is being phased out fn main() {}