fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0072]: recursive types `A` and `B` have infinite size 2 --> $DIR/issue-105231.rs:2:1 3 | 4LL | struct A<T>(B<T>); 5 | ^^^^^^^^^^^ ---- recursive without indirection 6LL | 7LL | struct B<T>(A<A<T>>); 8 | ^^^^^^^^^^^ ------- recursive without indirection 9 | 10help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle 11 | 12LL ~ struct A<T>(Box<B<T>>); 13LL | 14LL ~ struct B<T>(Box<A<A<T>>>); 15 | 16 17error[E0275]: overflow evaluating the requirement `A<A<A<A<A<A<A<...>>>>>>>: Send` 18 | 19 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`issue_105231`) 20note: required because it appears within the type `B<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<A<u8>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>` 21 --> $DIR/issue-105231.rs:4:8 22 | 23LL | struct B<T>(A<A<T>>); 24 | ^ 25 26error: aborting due to 2 previous errors 27 28Some errors have detailed explanations: E0072, E0275. 29For more information about an error, try `rustc --explain E0072`.