summaryrefslogtreecommitdiffstats
path: root/src/test/ui/custom_test_frameworks/mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/custom_test_frameworks/mismatch.rs')
-rw-r--r--src/test/ui/custom_test_frameworks/mismatch.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/custom_test_frameworks/mismatch.rs b/src/test/ui/custom_test_frameworks/mismatch.rs
new file mode 100644
index 000000000..ac850552b
--- /dev/null
+++ b/src/test/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