// check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] trait Trait { const ASSOC: usize; } struct Foo(T) where [(); T::ASSOC]:; impl Drop for Foo where [(); T::ASSOC]:, { fn drop(&mut self) {} } fn main() {}