1
1
error[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
3
3
|
4
4
LL | #[lang = "add"]
5
5
| ^^^^^^^^^^^^^^^
6
6
LL | trait MyAdd<'a, T> {}
7
7
| ------- this trait has 2 generic arguments
8
8
9
9
error[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
11
11
|
12
12
LL | #[lang = "drop_in_place"]
13
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -16,24 +16,33 @@ LL | fn my_ptr_drop() {}
16
16
| - this function has 0 generic arguments
17
17
18
18
error[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
20
20
|
21
21
LL | #[lang = "index"]
22
22
| ^^^^^^^^^^^^^^^^^
23
23
LL | trait MyIndex<'a, T> {}
24
24
| ------- this trait has 2 generic arguments
25
25
26
26
error[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
28
28
|
29
29
LL | #[lang = "phantom_data"]
30
30
| ^^^^^^^^^^^^^^^^^^^^^^^^
31
31
LL |
32
32
LL | struct MyPhantomData<T, U>;
33
33
| ------ this struct has 2 generic arguments
34
34
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
+
35
44
error[E0392]: parameter `T` is never used
36
- --> $DIR/lang-item-generic-requirements.rs:25 :22
45
+ --> $DIR/lang-item-generic-requirements.rs:24 :22
37
46
|
38
47
LL | struct MyPhantomData<T, U>;
39
48
| ^ unused parameter
@@ -42,15 +51,15 @@ LL | struct MyPhantomData<T, U>;
42
51
= help: if you intended `T` to be a const parameter, use `const T: usize` instead
43
52
44
53
error[E0392]: parameter `U` is never used
45
- --> $DIR/lang-item-generic-requirements.rs:25 :25
54
+ --> $DIR/lang-item-generic-requirements.rs:24 :25
46
55
|
47
56
LL | struct MyPhantomData<T, U>;
48
57
| ^ unused parameter
49
58
|
50
59
= help: consider removing `U` or referring to it in a field
51
60
= help: if you intended `U` to be a const parameter, use `const U: usize` instead
52
61
53
- error: aborting due to 6 previous errors
62
+ error: aborting due to 7 previous errors
54
63
55
64
Some errors have detailed explanations: E0392, E0718.
56
65
For more information about an error, try `rustc --explain E0392`.
0 commit comments