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 15:56:47 +00:00
--> $DIR/mismatch.rs:9:1
2018-07-21 01:04:02 +00:00
|
LL | #[test]
| ------- in this procedural macro expansion
2018-07-21 01:04:02 +00:00
LL | fn wrong_kind(){}
| ^^^^^^^^^^^^^^^^^ 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`
= 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
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`.