blob: f441ac499f99c6b151771b1009ade62a3ee4fea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ compile-flags: -Znext-solver
trait Foo {
type Assoc;
}
trait Bar {}
fn needs_bar<S: Bar>() {}
fn test<T: Foo<Assoc = <T as Foo>::Assoc>>() {
needs_bar::<T::Assoc>();
//~^ ERROR the trait bound `<T as Foo>::Assoc: Bar` is not satisfied
}
fn main() {}
|