summaryrefslogtreecommitdiffstats
path: root/tests/ui/entry-point/issue-118772.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/entry-point/issue-118772.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/entry-point/issue-118772.stderr b/tests/ui/entry-point/issue-118772.stderr
new file mode 100644
index 000000000..cc33427f5
--- /dev/null
+++ b/tests/ui/entry-point/issue-118772.stderr
@@ -0,0 +1,12 @@
+error[E0580]: `main` function has wrong type
+ --> $DIR/issue-118772.rs:1:1
+ |
+LL | fn main(_: &i32) {
+ | ^^^^^^^^^^^^^^^^ incorrect number of function parameters
+ |
+ = note: expected signature `fn()`
+ found signature `for<'a> fn(&'a i32)`
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0580`.