blob: d8599ab22a32b8de907eef76b216ff2dd43e0c74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 `==`
//~| ERROR: this trait takes 0 generic arguments but 1 generic argument was supplied
{
}
fn main() {}
|