mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-09 09:32:16 +00:00
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.
6 lines
202 B
Plaintext
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")]
|
|
| ^^^^^^^^
|