2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `TestDescAndFn: Testable` is not satisfied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/mismatch.rs:9:1
|
2018-07-21 01:04:02 +00:00
|
|
|
|
|
2021-07-17 18:13:50 +00:00
|
|
|
LL | #[test]
|
|
|
|
| ------- in this procedural macro expansion
|
2018-07-21 01:04:02 +00:00
|
|
|
LL | fn wrong_kind(){}
|
2020-09-02 07:40:56 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the trait `Testable` is not implemented for `TestDescAndFn`
|
2018-07-21 01:04:02 +00:00
|
|
|
|
|
2023-05-11 02:10:56 +00:00
|
|
|
= note: required for the cast from `&TestDescAndFn` to `&dyn Testable`
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-07-21 01:04:02 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-21 01:04:02 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|