rust/tests/ui/custom_test_frameworks/mismatch.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
587 B
Plaintext
Raw Normal View History

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