fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
776 B22 linesraw
1error[E0277]: the trait bound `{integer}: TraitA` is not satisfied
2  --> $DIR/vtable-res-trait-param.rs:17:18
3   |
4LL |     b.gimme_an_a(y)
5   |       ---------- ^ the trait `TraitA` is not implemented for `{integer}`
6   |       |
7   |       required by a bound introduced by this call
8   |
9help: this trait has no implementations, consider adding one
10  --> $DIR/vtable-res-trait-param.rs:1:1
11   |
12LL | trait TraitA {
13   | ^^^^^^^^^^^^
14note: required by a bound in `TraitB::gimme_an_a`
15  --> $DIR/vtable-res-trait-param.rs:6:21
16   |
17LL |     fn gimme_an_a<A:TraitA>(&self, a: A) -> isize;
18   |                     ^^^^^^ required by this bound in `TraitB::gimme_an_a`
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0277`.