I am trying substrate kitties Workshop. After setting environment and paste the bare-bone code of kitties pallet , when I run cargo build --release
the following error occur after 2-3 minutes when building sp-runtime
:
error[E0277]: the trait bound `H256: TypeInfo` is not satisfied
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/testing.rs:260:14
|
260 | type Hash = <Header as traits::Header>::Hash;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TypeInfo` is not implemented for `H256`
|
= help: the following other types implement trait `TypeInfo`:
&T
&mut T
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
and 117 others
note: required by a bound in `traits::Block::Hash`
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/traits.rs:917:5
|
904 | type Hash: Member
| ---- required by a bound in this
...
917 | + TypeInfo;
| ^^^^^^^^ required by this bound in `Block::Hash`
error[E0277]: the trait bound `H256: TypeInfo` is not satisfied
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/traits.rs:700:16
|
700 | type Output = sp_core::H256;
| ^^^^^^^^^^^^^ the trait `TypeInfo` is not implemented for `H256`
|
= help: the following other types implement trait `TypeInfo`:
&T
&mut T
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
and 117 others
note: required by a bound in `traits::Hash::Output`
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/traits.rs:665:5
|
654 | type Output: Member
| ------ required by a bound in this
...
665 | + TypeInfo;
| ^^^^^^^^ required by this bound in `Hash::Output`
error[E0277]: the trait bound `H256: TypeInfo` is not satisfied
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/traits.rs:727:16
|
727 | type Output = sp_core::H256;
| ^^^^^^^^^^^^^ the trait `TypeInfo` is not implemented for `H256`
|
= help: the following other types implement trait `TypeInfo`:
&T
&mut T
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
and 117 others
note: required by a bound in `traits::Hash::Output`
--> /home/abuzar945/.cargo/git/checkouts/substrate-7e08433d4c370a21/a3ed011/primitives/runtime/src/traits.rs:665:5
|
654 | type Output: Member
| ------ required by a bound in this
...
665 | + TypeInfo;
| ^^^^^^^^ required by this bound in `Hash::Output`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `sp-runtime` due to 3 previous errors