// The impl of lint `const_evaluatable_unchecked` used to wrongly assume and `assert!` that // successfully evaluating a type-system constant that has non-region args had to be an anon const. // In the case below however we have a type-system assoc const (here: `<() as TraitA>::K`). // // issue: //@ check-pass #![feature(associated_const_equality)] pub trait TraitA { const K: u8 = 0; } pub trait TraitB {} impl TraitA for () {} impl TraitB for () where (): TraitA {} fn check() where (): TraitB {} fn main() {}