]> git.proxmox.com Git - rustc.git/blame - tests/ui/lang-items/start_lang_item_args.main_args.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / lang-items / start_lang_item_args.main_args.stderr
CommitLineData
781aab86
FG
1error[E0308]: lang item `start` function has wrong type
2 --> $DIR/start_lang_item_args.rs:61:1
9c376795
FG
3 |
4LL | fn start<T>(_main: fn(i32) -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
781aab86 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of function parameters
9c376795 6 |
781aab86
FG
7 = note: expected signature `fn(fn() -> _, _, _, _) -> _`
8 found signature `fn(fn(i32) -> _, _, _, _) -> _`
9c376795 9
4b012472 10error: aborting due to 1 previous error
9c376795 11
781aab86 12For more information about this error, try `rustc --explain E0308`.