fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0718]: `add` language item must be applied to a trait with 1 generic argument 2 --> $DIR/lang-item-generic-requirements.rs:10:1 3 | 4LL | #[lang = "add"] 5 | ^^^^^^^^^^^^^^^ 6LL | trait MyAdd<'a, T> {} 7 | ------- this trait has 2 generic arguments 8 9error[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:14:1 11 | 12LL | #[lang = "drop_in_place"] 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 14LL | 15LL | fn my_ptr_drop() {} 16 | - this function has 0 generic arguments 17 18error[E0718]: `index` language item must be applied to a trait with 1 generic argument 19 --> $DIR/lang-item-generic-requirements.rs:18:1 20 | 21LL | #[lang = "index"] 22 | ^^^^^^^^^^^^^^^^^ 23LL | trait MyIndex<'a, T> {} 24 | ------- this trait has 2 generic arguments 25 26error[E0718]: `phantom_data` language item must be applied to a struct with 1 generic argument 27 --> $DIR/lang-item-generic-requirements.rs:22:1 28 | 29LL | #[lang = "phantom_data"] 30 | ^^^^^^^^^^^^^^^^^^^^^^^^ 31LL | 32LL | struct MyPhantomData<T, U>; 33 | ------ this struct has 2 generic arguments 34 35error[E0718]: `owned_box` language item must be applied to a struct with at least 1 generic argument 36 --> $DIR/lang-item-generic-requirements.rs:26:1 37 | 38LL | #[lang = "owned_box"] 39 | ^^^^^^^^^^^^^^^^^^^^^ 40LL | 41LL | struct Foo; 42 | - this struct has 0 generic arguments 43 44error[E0718]: `start` language item must be applied to a function with 1 generic argument 45 --> $DIR/lang-item-generic-requirements.rs:32:1 46 | 47LL | #[lang = "start"] 48 | ^^^^^^^^^^^^^^^^^ 49LL | 50LL | fn start(_: *const u8, _: isize, _: *const *const u8) -> isize { 51 | - this function has 0 generic arguments 52 53error: aborting due to 6 previous errors 54 55For more information about this error, try `rustc --explain E0718`.