|
1 | 1 | error[E0391]: cycle detected when expanding type alias `Node1Value` |
2 | | - --> fail/interface/struct/attr_cyclic_impl.rs:3:46 |
3 | | - | |
4 | | -3 | #[graphql_interface(impl = Node2Value, for = Node2Value)] |
5 | | - | ^^^^^^^^^^ |
6 | | - | |
| 2 | + --> fail/interface/struct/attr_cyclic_impl.rs:3:46 |
| 3 | + | |
| 4 | +3 | #[graphql_interface(impl = Node2Value, for = Node2Value)] |
| 5 | + | ^^^^^^^^^^ |
| 6 | + | |
7 | 7 | note: ...which requires expanding type alias `Node2Value`... |
8 | | - --> fail/interface/struct/attr_cyclic_impl.rs:8:46 |
9 | | - | |
10 | | -8 | #[graphql_interface(impl = Node1Value, for = Node1Value)] |
11 | | - | ^^^^^^^^^^ |
12 | | - = note: ...which again requires expanding type alias `Node1Value`, completing the cycle |
13 | | - = note: type aliases cannot be recursive |
14 | | - = help: consider using a struct, enum, or union instead to break the cycle |
15 | | - = help: see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information |
16 | | -note: cycle used when collecting item types in top-level module |
17 | | - --> fail/interface/struct/attr_cyclic_impl.rs:1:1 |
18 | | - | |
19 | | -1 | / use juniper::graphql_interface; |
20 | | -2 | | |
21 | | -3 | | #[graphql_interface(impl = Node2Value, for = Node2Value)] |
22 | | -4 | | struct Node1 { |
23 | | -... | |
24 | | -12 | | |
25 | | -13 | | fn main() {} |
26 | | - | |____________^ |
27 | | - = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information |
| 8 | + --> fail/interface/struct/attr_cyclic_impl.rs:8:46 |
| 9 | + | |
| 10 | +8 | #[graphql_interface(impl = Node1Value, for = Node1Value)] |
| 11 | + | ^^^^^^^^^^ |
| 12 | + = note: ...which again requires expanding type alias `Node1Value`, completing the cycle |
| 13 | + = note: type aliases cannot be recursive |
| 14 | + = help: consider using a struct, enum, or union instead to break the cycle |
| 15 | + = help: see <https://doc.rust-lang.org/reference/types.html#recursive-types> for more information |
| 16 | +note: cycle used when computing type of `<impl at $DIR/fail/interface/struct/attr_cyclic_impl.rs:3:1: 3:58>` |
| 17 | + --> fail/interface/struct/attr_cyclic_impl.rs:3:1 |
| 18 | + | |
| 19 | +3 | #[graphql_interface(impl = Node2Value, for = Node2Value)] |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 21 | + = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information |
| 22 | + = note: this error originates in the attribute macro `graphql_interface` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments