rust-libp2p/swarm/tests/ui/fail/prelude_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
195 B
Plaintext

error: expected a string literal
--> tests/ui/fail/prelude_not_string.rs:4:23
|
4 | #[behaviour(prelude = libp2p_swarm::derive_prelude)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^