]>
Commit | Line | Data |
---|---|---|
c295e0f8 XL |
1 | error: expected one of `,` or `>`, found `==` |
2 | --> $DIR/issue-87493.rs:8:22 | |
3 | | | |
4 | LL | T: MyTrait<Assoc == S::Assoc>, | |
5 | | ^^ expected one of `,` or `>` | |
6 | | | |
7 | help: if you meant to use an associated type binding, replace `==` with `=` | |
8 | | | |
9 | LL | T: MyTrait<Assoc = S::Assoc>, | |
10 | | ~ | |
11 | ||
12 | error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied | |
13 | --> $DIR/issue-87493.rs:8:8 | |
14 | | | |
15 | LL | T: MyTrait<Assoc == S::Assoc>, | |
f2b60f7d | 16 | | ^^^^^^^ expected 0 generic arguments |
c295e0f8 XL |
17 | | |
18 | note: trait defined here, with 0 generic parameters | |
19 | --> $DIR/issue-87493.rs:1:11 | |
20 | | | |
21 | LL | pub trait MyTrait { | |
22 | | ^^^^^^^ | |
f2b60f7d FG |
23 | help: replace the generic bound with the associated type |
24 | | | |
25 | LL | T: MyTrait<Assoc = Assoc == S::Assoc>, | |
26 | | +++++++ | |
c295e0f8 XL |
27 | |
28 | error: aborting due to 2 previous errors | |
29 | ||
30 | For more information about this error, try `rustc --explain E0107`. |