juniper/tests/codegen/fail/interface/trait/cyclic_impl.rs

14 lines
245 B
Rust
Raw Permalink Normal View History

use juniper::graphql_interface;
#[graphql_interface(impl = Node2Value, for = Node2Value)]
trait Node1 {
fn id(&self) -> &str;
}
#[graphql_interface(impl = Node1Value, for = Node1Value)]
trait Node2 {
fn id() -> String;
}
fn main() {}