rust-libp2p/swarm/tests/ui/fail/to_swarm_not_string.stderr
Thomas Eizinger adcc10b841
refactor(swarm-derive): better error reporting for invalid attributes
This PR refactors the error reporting away from panicking to returning `syn::Result` and adds two unit tests for the parsing of attributes that users interact with.

Pull-Request: #3922.
2023-05-15 12:15:14 +00:00

6 lines
202 B
Plaintext

error: expected a string literal
--> tests/ui/fail/to_swarm_not_string.rs:4:25
|
4 | #[behaviour(out_event = FooEvent, prelude = "libp2p_swarm::derive_prelude")]
| ^^^^^^^^