2021-07-28 15:49:56 -05:00
|
|
|
pub trait MyTrait {
|
|
|
|
type Assoc;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn foo<S, T>(_s: S, _t: T)
|
|
|
|
where
|
|
|
|
S: MyTrait,
|
|
|
|
T: MyTrait<Assoc == S::Assoc>,
|
|
|
|
//~^ ERROR: expected one of `,` or `>`, found `==`
|
2023-02-23 11:27:06 -06:00
|
|
|
//~| ERROR: trait takes 0 generic arguments but 1 generic argument was supplied
|
2021-07-28 15:49:56 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|