blob: f6cab0681ec2ef0e79460d8a9a1309c0802250fd [file] [log] [blame]
//@ check-pass
#![feature(const_trait_impl)]
#[const_trait]
trait A where Self::Assoc: const B {
type Assoc;
}
#[const_trait]
trait B {}
fn needs_b<T: const B>() {}
fn test<T: A>() {
needs_b::<T::Assoc>();
}
fn main() {}