diff options
Diffstat (limited to 'src/test/ui/main-wrong-type.stderr')
-rw-r--r-- | src/test/ui/main-wrong-type.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/main-wrong-type.stderr b/src/test/ui/main-wrong-type.stderr new file mode 100644 index 000000000..43efaf884 --- /dev/null +++ b/src/test/ui/main-wrong-type.stderr @@ -0,0 +1,12 @@ +error[E0580]: `main` function has wrong type + --> $DIR/main-wrong-type.rs:6:1 + | +LL | fn main(foo: S) { + | ^^^^^^^^^^^^^^^ incorrect number of function parameters + | + = note: expected fn pointer `fn()` + found fn pointer `fn(S)` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0580`. |