|
| 1 | +error[E0277]: the trait bound `Vec<NonPacked>: Decode` is not satisfied |
| 2 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:11:8 |
| 3 | + | |
| 4 | +11 | a: Vec<NonPacked>, |
| 5 | + | ^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `Vec<NonPacked>` |
| 6 | + | |
| 7 | + = help: the trait `Decode` is implemented for `Vec<T>` |
| 8 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 9 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 10 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 11 | + |
| 12 | +error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied |
| 13 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:11:8 |
| 14 | + | |
| 15 | +11 | a: Vec<NonPacked>, |
| 16 | + | ^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `[NonPacked]` |
| 17 | + | |
| 18 | + = help: the following other types implement trait `Encode`: |
| 19 | + [T; N] |
| 20 | + [T] |
| 21 | + = note: required because of the requirements on the impl of `Encode` for `Vec<NonPacked>` |
| 22 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 23 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 24 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 25 | + |
| 26 | +error[E0277]: the trait bound `Vec<NonPacked>: Decode` is not satisfied |
| 27 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1 |
| 28 | + | |
| 29 | +9 | #[ink_lang::storage_item] |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `Vec<NonPacked>` |
| 31 | + | |
| 32 | + = help: the trait `Decode` is implemented for `Vec<T>` |
| 33 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 34 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 35 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 36 | +note: required because it appears within the type `Contract` |
| 37 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8 |
| 38 | + | |
| 39 | +10 | struct Contract { |
| 40 | + | ^^^^^^^^ |
| 41 | +note: required by a bound in `Storable` |
| 42 | + --> $WORKSPACE/crates/storage/src/traits/storage.rs |
| 43 | + | |
| 44 | + | pub trait Storable: Sized { |
| 45 | + | ^^^^^ required by this bound in `Storable` |
| 46 | + = note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 47 | + |
| 48 | +error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied |
| 49 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1 |
| 50 | + | |
| 51 | +9 | #[ink_lang::storage_item] |
| 52 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `[NonPacked]` |
| 53 | + | |
| 54 | + = help: the following other types implement trait `Encode`: |
| 55 | + [T; N] |
| 56 | + [T] |
| 57 | + = note: required because of the requirements on the impl of `Encode` for `Vec<NonPacked>` |
| 58 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 59 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 60 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 61 | +note: required because it appears within the type `Contract` |
| 62 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8 |
| 63 | + | |
| 64 | +10 | struct Contract { |
| 65 | + | ^^^^^^^^ |
| 66 | +note: required by a bound in `Storable` |
| 67 | + --> $WORKSPACE/crates/storage/src/traits/storage.rs |
| 68 | + | |
| 69 | + | pub trait Storable: Sized { |
| 70 | + | ^^^^^ required by this bound in `Storable` |
| 71 | + = note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 72 | + |
| 73 | +error[E0277]: the trait bound `Vec<NonPacked>: Decode` is not satisfied |
| 74 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1 |
| 75 | + | |
| 76 | +9 | #[ink_lang::storage_item] |
| 77 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Decode` is not implemented for `Vec<NonPacked>` |
| 78 | + | |
| 79 | + = help: the trait `Decode` is implemented for `Vec<T>` |
| 80 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 81 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 82 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 83 | +note: required because it appears within the type `Contract` |
| 84 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8 |
| 85 | + | |
| 86 | +10 | struct Contract { |
| 87 | + | ^^^^^^^^ |
| 88 | +note: required by a bound in `Result` |
| 89 | + --> $RUST/core/src/result.rs |
| 90 | + | |
| 91 | + | pub enum Result<T, E> { |
| 92 | + | ^ required by this bound in `Result` |
| 93 | + = note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 94 | + |
| 95 | +error[E0277]: the trait bound `[NonPacked]: Encode` is not satisfied |
| 96 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:9:1 |
| 97 | + | |
| 98 | +9 | #[ink_lang::storage_item] |
| 99 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `[NonPacked]` |
| 100 | + | |
| 101 | + = help: the following other types implement trait `Encode`: |
| 102 | + [T; N] |
| 103 | + [T] |
| 104 | + = note: required because of the requirements on the impl of `Encode` for `Vec<NonPacked>` |
| 105 | + = note: required because of the requirements on the impl of `Packed` for `Vec<NonPacked>` |
| 106 | + = note: required because of the requirements on the impl of `Item<()>` for `Vec<NonPacked>` |
| 107 | + = note: required because of the requirements on the impl of `AutoItem<ManualKey<2085512762_u32>>` for `Vec<NonPacked>` |
| 108 | +note: required because it appears within the type `Contract` |
| 109 | + --> tests/ui/storage_item/fail/collections_only_packed_1.rs:10:8 |
| 110 | + | |
| 111 | +10 | struct Contract { |
| 112 | + | ^^^^^^^^ |
| 113 | +note: required by a bound in `Result` |
| 114 | + --> $RUST/core/src/result.rs |
| 115 | + | |
| 116 | + | pub enum Result<T, E> { |
| 117 | + | ^ required by this bound in `Result` |
| 118 | + = note: this error originates in the derive macro `::ink_storage::traits::Storable` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments