forked from paritytech/parity-scale-codec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrate_str.stderr
More file actions
54 lines (52 loc) · 2.18 KB
/
crate_str.stderr
File metadata and controls
54 lines (52 loc) · 2.18 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
error: Invalid attribute: only `#[codec(dumb_trait_bound)]`, `#[codec(crate = path::to::crate)]`, `#[codec(encode_bound(T: Encode))]`, `#[codec(decode_bound(T: Decode))]`, `#[codec(decode_with_mem_tracking_bound(T: DecodeWithMemTracking))]` or `#[codec(mel_bound(T: MaxEncodedLen))]` are accepted as top attribute
--> tests/max_encoded_len_ui/crate_str.rs:4:9
|
4 | #[codec(crate = "parity_scale_codec")]
| ^^^^^
error[E0277]: the trait bound `Example: Encode` is not satisfied
--> tests/max_encoded_len_ui/crate_str.rs:5:8
|
5 | struct Example;
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'_, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'_, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `MaxEncodedLen`
--> src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen`
error[E0277]: the trait bound `Example: Encode` is not satisfied
--> tests/max_encoded_len_ui/crate_str.rs:8:10
|
8 | let _ = Example::max_encoded_len();
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'_, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'_, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `max_encoded_len`
--> src/max_encoded_len.rs
|
| pub trait MaxEncodedLen: Encode {
| ^^^^^^ required by this bound in `MaxEncodedLen::max_encoded_len`
| /// Upper bound, in bytes, of the maximum encoded size of this item.
| fn max_encoded_len() -> usize;
| --------------- required by a bound in this associated function