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
195 B
Plaintext
6 lines
195 B
Plaintext
error: expected a string literal
|
|
--> tests/ui/fail/prelude_not_string.rs:4:23
|
|
|
|
|
4 | #[behaviour(prelude = libp2p_swarm::derive_prelude)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|