]> git.lizzy.rs Git - rust.git/blob - tests/ui/lang-items/issue-87573.stderr
Rollup merge of #107692 - Swatinem:printsizeyield, r=compiler-errors
[rust.git] / tests / ui / lang-items / issue-87573.stderr
1 error[E0718]: `drop_in_place` language item must be applied to a function with at least 1 generic argument
2   --> $DIR/issue-87573.rs:20:1
3    |
4 LL | #[lang = "drop_in_place"]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^
6 LL |
7 LL | fn drop_fn() {
8    |           - this function has 0 generic arguments
9
10 error[E0718]: `start` language item must be applied to a function with 1 generic argument
11   --> $DIR/issue-87573.rs:26:1
12    |
13 LL | #[lang = "start"]
14    | ^^^^^^^^^^^^^^^^^
15 LL |
16 LL | fn start(){}
17    |         - this function has 0 generic arguments
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0718`.