fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0072]: recursive types `Foo` and `Bar` have infinite size 2 --> $DIR/variance-regions-unused-indirect.rs:3:1 3 | 4LL | enum Foo<'a> { 5 | ^^^^^^^^^^^^ 6LL | 7LL | Foo1(Bar<'a>) 8 | ------- recursive without indirection 9... 10LL | enum Bar<'a> { 11 | ^^^^^^^^^^^^ 12LL | Bar1(Foo<'a>) 13 | ------- recursive without indirection 14 | 15help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle 16 | 17LL ~ Foo1(Box<Bar<'a>>) 18LL | } 19LL | 20LL | enum Bar<'a> { 21LL ~ Bar1(Box<Foo<'a>>) 22 | 23 24error[E0392]: parameter `'a` is never used 25 --> $DIR/variance-regions-unused-indirect.rs:3:10 26 | 27LL | enum Foo<'a> { 28 | ^^ unused parameter 29 | 30 = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData` 31 32error[E0392]: parameter `'a` is never used 33 --> $DIR/variance-regions-unused-indirect.rs:8:10 34 | 35LL | enum Bar<'a> { 36 | ^^ unused parameter 37 | 38 = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData` 39 40error: aborting due to 3 previous errors 41 42Some errors have detailed explanations: E0072, E0392. 43For more information about an error, try `rustc --explain E0072`.