diff options
Diffstat (limited to 'tests/ui/custom_test_frameworks/mismatch.rs')
-rw-r--r-- | tests/ui/custom_test_frameworks/mismatch.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/custom_test_frameworks/mismatch.rs b/tests/ui/custom_test_frameworks/mismatch.rs new file mode 100644 index 000000000..ac850552b --- /dev/null +++ b/tests/ui/custom_test_frameworks/mismatch.rs @@ -0,0 +1,10 @@ +// aux-build:example_runner.rs +// compile-flags:--test +#![feature(custom_test_frameworks)] +#![test_runner(example_runner::runner)] + +extern crate example_runner; + +#[test] +fn wrong_kind(){} +//~^ ERROR trait bound `TestDescAndFn: Testable` is not satisfied |