summaryrefslogtreecommitdiffstats
path: root/src/test/ui/main-wrong-type.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/main-wrong-type.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/main-wrong-type.rs b/src/test/ui/main-wrong-type.rs
new file mode 100644
index 000000000..31deba72a
--- /dev/null
+++ b/src/test/ui/main-wrong-type.rs
@@ -0,0 +1,8 @@
+struct S {
+ x: isize,
+ y: isize,
+}
+
+fn main(foo: S) {
+//~^ ERROR: `main` function has wrong type [E0580]
+}