juniper/integration_tests/codegen_fail/fail/union/enum_no_fields.stderr

24 lines
563 B
Text
Raw Normal View History

warning: field is never read: `enum_path`
--> $DIR/mod.rs:282:5
|
282 | pub enum_path: Option<TokenStream>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: field is never read: `span`
--> $DIR/mod.rs:296:5
|
296 | pub span: Span,
| ^^^^^^^^^^^^^^
warning: 2 warnings emitted
error: GraphQL union expects at least one union variant
--> $DIR/enum_no_fields.rs:4:1
|
4 | enum Character {}
| ^^^^^^^^^^^^^^^^^
|
= note: https://spec.graphql.org/June2018/#sec-Unions