-
Notifications
You must be signed in to change notification settings - Fork 26
/
fail_missing_derive.stderr
30 lines (30 loc) · 1.21 KB
/
fail_missing_derive.stderr
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
error[E0277]: the trait bound `PawType<u16>: TypeInfo` is not satisfied
--> tests/ui/fail_missing_derive.rs:19:24
|
19 | assert_type_info::<Cat<bool, u8, u16>>();
| ^^^^^^^^^^^^^^^^^^ the trait `TypeInfo` is not implemented for `PawType<u16>`, which is required by `Cat<bool, u8, u16>: TypeInfo`
|
= help: the following other types implement trait `TypeInfo`:
bool
char
i8
i16
i32
i64
i128
u8
and $N others
note: required for `Cat<bool, u8, u16>` to implement `TypeInfo`
--> tests/ui/fail_missing_derive.rs:8:10
|
8 | #[derive(TypeInfo)]
| ^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
9 | #[scale_info(crate = info)]
10 | struct Cat<Tail, Ear, Paw> {
| ^^^^^^^^^^^^^^^^^^^
note: required by a bound in `assert_type_info`
--> tests/ui/fail_missing_derive.rs:16:24
|
16 | fn assert_type_info<T: TypeInfo + 'static>() {}
| ^^^^^^^^ required by this bound in `assert_type_info`
= note: this error originates in the derive macro `TypeInfo` (in Nightly builds, run with -Z macro-backtrace for more info)