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