rust-libp2p/swarm/tests/ui/fail/prelude_not_string.rs
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

12 lines
179 B
Rust

use libp2p_ping as ping;
#[derive(libp2p_swarm::NetworkBehaviour)]
#[behaviour(prelude = libp2p_swarm::derive_prelude)]
struct Foo {
ping: ping::Behaviour,
}
fn main() {
}