]> git.lizzy.rs Git - rust.git/blob - src/test/ui/custom_test_frameworks/mismatch.stderr
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
[rust.git] / src / test / ui / custom_test_frameworks / mismatch.stderr
1 error[E0277]: the trait bound `TestDescAndFn: Testable` is not satisfied
2   --> $DIR/mismatch.rs:9:1
3    |
4 LL | #[test]
5    | ------- in this procedural macro expansion
6 LL | fn wrong_kind(){}
7    | ^^^^^^^^^^^^^^^^^ the trait `Testable` is not implemented for `TestDescAndFn`
8    |
9    = note: required for the cast to the object type `dyn Testable`
10    = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.