]> git.lizzy.rs Git - rust.git/blob - tests/ui/lang-items/start_lang_item_args.main_ret.stderr
Rollup merge of #107692 - Swatinem:printsizeyield, r=compiler-errors
[rust.git] / tests / ui / lang-items / start_lang_item_args.main_ret.stderr
1 error: parameter 1 of the `start` lang item is incorrect
2   --> $DIR/start_lang_item_args.rs:68:20
3    |
4 LL | fn start<T>(_main: fn() -> u16, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
5    |                    ^^^^^^^^^^^
6    |
7 help: change the type from `fn() -> u16` to `fn() -> T`
8    |
9 LL | fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
10    |                    ~~~~~~~~~
11
12 error: aborting due to previous error
13