-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathtables.stderr
More file actions
173 lines (165 loc) · 6.56 KB
/
tables.stderr
File metadata and controls
173 lines (165 loc) · 6.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
error: type parameters are not allowed on tables
--> tests/ui/tables.rs:9:18
|
9 | struct TypeParam<T> {
| ^
error: const parameters are not allowed on tables
--> tests/ui/tables.rs:14:19
|
14 | struct ConstParam<const X: u8> {}
| ^^^^^^^^^^^
error[E0277]: the column type `Test` does not implement `SpacetimeType`
--> tests/ui/tables.rs:5:8
|
5 | x: Test,
| ^^^^ the trait `SpacetimeType` is not implemented for `Test`
|
= note: table column types all must implement `SpacetimeType`
= note: if you own the type, try adding `#[derive(SpacetimeType)]` to its definition
= help: the following other types implement trait `SpacetimeType`:
&T
()
AlgebraicType
AlgebraicTypeRef
Alpha
Arc<T>
ArrayType
Box<T>
and $N others
= note: required for `Test` to implement `TableColumn`
error[E0277]: the trait bound `Test: SpacetimeType` is not satisfied
--> tests/ui/tables.rs:5:8
|
5 | x: Test,
| ^^^^ the trait `SpacetimeType` is not implemented for `Test`
|
= note: if you own the type, try adding `#[derive(SpacetimeType)]` to its definition
= help: the following other types implement trait `SpacetimeType`:
&T
()
AlgebraicType
AlgebraicTypeRef
Alpha
Arc<T>
ArrayType
Box<T>
and $N others
error[E0277]: the trait bound `Test: Deserialize<'de>` is not satisfied
--> tests/ui/tables.rs:5:8
|
3 | #[spacetimedb::table(name = table)]
| ----------------------------------- required by a bound introduced by this call
4 | struct Table {
5 | x: Test,
| ^^^^ the trait `Deserialize<'de>` is not implemented for `Test`
|
= help: the following other types implement trait `Deserialize<'de>`:
&'de [u8]
&'de str
()
AlgebraicType
AlgebraicTypeRef
Alpha
Arc<[T]>
ArrayType
and $N others
note: required by a bound in `spacetimedb::spacetimedb_lib::de::SeqProductAccess::next_element`
--> $WORKSPACE/crates/sats/src/de.rs
|
| fn next_element<T: Deserialize<'de>>(&mut self) -> Result<Option<T>, Self::Error> {
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqProductAccess::next_element`
error[E0277]: the trait bound `Test: Deserialize<'_>` is not satisfied
--> tests/ui/tables.rs:5:8
|
5 | x: Test,
| ^^^^ the trait `Deserialize<'_>` is not implemented for `Test`
|
= help: the following other types implement trait `Deserialize<'de>`:
&'de [u8]
&'de str
()
AlgebraicType
AlgebraicTypeRef
Alpha
Arc<[T]>
ArrayType
and $N others
note: required by a bound in `get_field_value`
--> $WORKSPACE/crates/sats/src/de.rs
|
| fn get_field_value<T: Deserialize<'de>>(&mut self) -> Result<T, Self::Error> {
| ^^^^^^^^^^^^^^^^ required by this bound in `NamedProductAccess::get_field_value`
error[E0277]: the trait bound `Test: Serialize` is not satisfied
--> tests/ui/tables.rs:5:8
|
5 | x: Test,
| ^^^^ the trait `Serialize` is not implemented for `Test`
|
= help: the following other types implement trait `Serialize`:
&T
()
AlgebraicType
AlgebraicTypeRef
AlgebraicValue
Alpha
Arc<T>
ArrayType
and $N others
note: required by a bound in `spacetimedb::spacetimedb_lib::ser::SerializeNamedProduct::serialize_element`
--> $WORKSPACE/crates/sats/src/ser.rs
|
| fn serialize_element<T: Serialize + ?Sized>(&mut self, name: Option<&str>, elem: &T) -> Result<(), Self::Error>;
| ^^^^^^^^^ required by this bound in `SerializeNamedProduct::serialize_element`
error[E0277]: `&'a Alpha` cannot appear as an argument to an index filtering operation
--> tests/ui/tables.rs:32:33
|
32 | ctx.db.delta().compound_a().find(Alpha { beta: 0 });
| ^^^^ should be an integer type, `bool`, `String`, `&str`, `Identity`, `ConnectionId`, `Hash` or a no-payload enum which derives `SpacetimeType`, not `&'a Alpha`
|
= help: the trait `for<'a> FilterableValue` is not implemented for `&'a Alpha`
= note: The allowed set of types are limited to integers, bool, strings, `Identity`, `ConnectionId`, `Hash` and no-payload enums which derive `SpacetimeType`,
= help: the following other types implement trait `FilterableValue`:
&ConnectionId
&Identity
&Lifecycle
&RawMiscModuleExportV9
&TableAccess
&TableType
&bool
ðnum::int::I256
and $N others
note: required by a bound in `UniqueColumn::<Tbl, <Col as Column>::ColType, Col>::find`
--> src/table.rs
|
| pub fn find(&self, col_val: impl Borrow<Col::ColType>) -> Option<Tbl::Row>
| ---- required by a bound in this associated function
| where
| for<'a> &'a Col::ColType: FilterableValue,
| ^^^^^^^^^^^^^^^ required by this bound in `UniqueColumn::<Tbl, <Col as Column>::ColType, Col>::find`
error[E0277]: the trait bound `Alpha: IndexScanRangeBounds<(Alpha,), SingleBound>` is not satisfied
--> tests/ui/tables.rs:33:40
|
33 | ctx.db.delta().compound_b().filter(Alpha { beta: 1 });
| ------ ^^^^^^^^^^^^^^^^^ the trait `FilterableValue` is not implemented for `Alpha`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `FilterableValue`:
&ConnectionId
&Identity
&Lifecycle
&RawMiscModuleExportV9
&TableAccess
&TableType
&bool
ðnum::int::I256
and $N others
= note: required for `Alpha` to implement `IndexScanRangeBounds<(Alpha,), SingleBound>`
note: required by a bound in `RangedIndex::<Tbl, IndexType, Idx>::filter`
--> src/table.rs
|
| pub fn filter<B, K>(&self, b: B) -> impl Iterator<Item = Tbl::Row>
| ------ required by a bound in this associated function
| where
| B: IndexScanRangeBounds<IndexType, K>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RangedIndex::<Tbl, IndexType, Idx>::filter`