summaryrefslogtreecommitdiffstats
path: root/src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs')
-rw-r--r--src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs b/src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs
new file mode 100644
index 000000000..ff62d8492
--- /dev/null
+++ b/src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs
@@ -0,0 +1,12 @@
+// run-pass
+
+#![feature(test)]
+
+// compile-flags: --test
+extern crate test;
+
+#[bench]
+pub fn bench_explicit_return_type(_: &mut ::test::Bencher) -> () {}
+
+#[test]
+pub fn test_explicit_return_type() -> () {}