2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: the trait bound `{integer}: TraitA` is not satisfied
|
2019-09-16 04:58:20 +00:00
|
|
|
--> $DIR/vtable-res-trait-param.rs:17:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | b.gimme_an_a(y)
|
2021-09-07 11:30:53 +00:00
|
|
|
| ---------- ^ the trait `TraitA` is not implemented for `{integer}`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-10-05 23:04:09 +00:00
|
|
|
|
|
2023-09-10 03:33:07 +00:00
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/vtable-res-trait-param.rs:1:1
|
|
|
|
|
|
|
|
|
LL | trait TraitA {
|
|
|
|
| ^^^^^^^^^^^^
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `TraitB::gimme_an_a`
|
|
|
|
--> $DIR/vtable-res-trait-param.rs:6:21
|
|
|
|
|
|
|
|
|
LL | fn gimme_an_a<A:TraitA>(&self, a: A) -> isize;
|
|
|
|
| ^^^^^^ required by this bound in `TraitB::gimme_an_a`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|