juniper/tests/codegen/fail/union/trait_with_attr_on_method.rs

15 lines
228 B
Rust
Raw Normal View History

use juniper::{graphql_union, GraphQLObject};
#[graphql_union]
trait Character {
#[graphql(with = something)]
fn a(&self) -> Option<&Human>;
}
#[derive(GraphQLObject)]
pub struct Human {
id: String,
}
fn main() {}