]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-87493.stderr
Auto merge of #96022 - martingms:inline-const-getters, r=nnethercote
[rust.git] / src / test / ui / const-generics / issues / issue-87493.stderr
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>,
16    |        ^^^^^^^ ----------------- help: replace the generic bound with the associated type: `Assoc = Assoc == S::Assoc`
17    |        |
18    |        expected 0 generic arguments
19    |
20 note: trait defined here, with 0 generic parameters
21   --> $DIR/issue-87493.rs:1:11
22    |
23 LL | pub trait MyTrait {
24    |           ^^^^^^^
25
26 error: aborting due to 2 previous errors
27
28 For more information about this error, try `rustc --explain E0107`.