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