]> git.lizzy.rs Git - rust.git/blob - tests/ui/lang-items/start_lang_item_args.too_many_args.stderr
Rollup merge of #106779 - RReverser:patch-2, r=Mark-Simulacrum
[rust.git] / tests / ui / lang-items / start_lang_item_args.too_many_args.stderr
1 error: incorrect number of parameters for the `start` lang item
2   --> $DIR/start_lang_item_args.rs:41:1
3    |
4 LL | / fn start<T>(
5 LL | |
6 LL | |     _main: fn() -> T,
7 LL | |     _argc: isize,
8 ...  |
9 LL | |     _extra_arg: (),
10 LL | | ) -> isize {
11    | |__________^
12    |
13    = note: the `start` lang item should have four parameters, but found 5
14    = note: the `start` lang item should have the signature `fn(fn() -> T, isize, *const *const u8, u8) -> isize`
15
16 error: aborting due to previous error
17