11error[E0718]: `add` language item must be applied to a trait with 1 generic argument
2- --> $DIR/lang-item-generic-requirements.rs:11 :1
2+ --> $DIR/lang-item-generic-requirements.rs:10 :1
33 |
44LL | #[lang = "add"]
55 | ^^^^^^^^^^^^^^^
66LL | trait MyAdd<'a, T> {}
77 | ------- this trait has 2 generic arguments
88
99error[E0718]: `drop_in_place` language item must be applied to a function with at least 1 generic argument
10- --> $DIR/lang-item-generic-requirements.rs:15 :1
10+ --> $DIR/lang-item-generic-requirements.rs:14 :1
1111 |
1212LL | #[lang = "drop_in_place"]
1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -16,24 +16,33 @@ LL | fn my_ptr_drop() {}
1616 | - this function has 0 generic arguments
1717
1818error[E0718]: `index` language item must be applied to a trait with 1 generic argument
19- --> $DIR/lang-item-generic-requirements.rs:19 :1
19+ --> $DIR/lang-item-generic-requirements.rs:18 :1
2020 |
2121LL | #[lang = "index"]
2222 | ^^^^^^^^^^^^^^^^^
2323LL | trait MyIndex<'a, T> {}
2424 | ------- this trait has 2 generic arguments
2525
2626error[E0718]: `phantom_data` language item must be applied to a struct with 1 generic argument
27- --> $DIR/lang-item-generic-requirements.rs:23 :1
27+ --> $DIR/lang-item-generic-requirements.rs:22 :1
2828 |
2929LL | #[lang = "phantom_data"]
3030 | ^^^^^^^^^^^^^^^^^^^^^^^^
3131LL |
3232LL | struct MyPhantomData<T, U>;
3333 | ------ this struct has 2 generic arguments
3434
35+ error[E0718]: `start` language item must be applied to a function with 1 generic argument
36+ --> $DIR/lang-item-generic-requirements.rs:30:1
37+ |
38+ LL | #[lang = "start"]
39+ | ^^^^^^^^^^^^^^^^^
40+ LL |
41+ LL | fn start(_: *const u8, _: isize, _: *const *const u8) -> isize {
42+ | - this function has 0 generic arguments
43+
3544error[E0392]: parameter `T` is never used
36- --> $DIR/lang-item-generic-requirements.rs:25 :22
45+ --> $DIR/lang-item-generic-requirements.rs:24 :22
3746 |
3847LL | struct MyPhantomData<T, U>;
3948 | ^ unused parameter
@@ -42,15 +51,15 @@ LL | struct MyPhantomData<T, U>;
4251 = help: if you intended `T` to be a const parameter, use `const T: usize` instead
4352
4453error[E0392]: parameter `U` is never used
45- --> $DIR/lang-item-generic-requirements.rs:25 :25
54+ --> $DIR/lang-item-generic-requirements.rs:24 :25
4655 |
4756LL | struct MyPhantomData<T, U>;
4857 | ^ unused parameter
4958 |
5059 = help: consider removing `U` or referring to it in a field
5160 = help: if you intended `U` to be a const parameter, use `const U: usize` instead
5261
53- error: aborting due to 6 previous errors
62+ error: aborting due to 7 previous errors
5463
5564Some errors have detailed explanations: E0392, E0718.
5665For more information about an error, try `rustc --explain E0392`.
0 commit comments