summaryrefslogtreecommitdiffstats
path: root/tests/ui/elided-test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/elided-test.rs')
-rw-r--r--tests/ui/elided-test.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/elided-test.rs b/tests/ui/elided-test.rs
new file mode 100644
index 000000000..b3f4446f1
--- /dev/null
+++ b/tests/ui/elided-test.rs
@@ -0,0 +1,7 @@
+// error-pattern: `main` function not found
+
+// Since we're not compiling a test runner this function should be elided
+// and the build will fail because main doesn't exist
+#[test]
+fn main() {
+}