| 1 |
error: unknown attribute: payload |
| 2 |
--> $DIR/payload_fn2.rs:16:7 |
| 3 |
| |
| 4 |
16 | #[payload(length_fn = "length_of_payload")] //~ ERROR: unknown attribute: payload |
| 5 |
| ^^^^^^^ |
| 6 |
|
| 7 |
error[E0412]: cannot find type `PacketWithPayload2Packet` in this scope |
| 8 |
--> $DIR/payload_fn2.rs:20:26 |
| 9 |
| |
| 10 |
14 | pub struct PacketWithPayload2 { |
| 11 |
| ----------------------------- similarly named struct `PacketWithPayload2` defined here |
| 12 |
... |
| 13 |
20 | fn length_of_payload(_: &PacketWithPayload2Packet) -> usize { //~ ERROR cannot find type `PacketWithPayload2Packet` in this scope |
| 14 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `PacketWithPayload2` |