1
Fork 0

Specialize suggestion for Option<T>

This commit is contained in:
Michael Goulet 2021-11-30 21:30:05 -08:00
parent df20355fa9
commit de04c05dea
14 changed files with 231 additions and 63 deletions

View file

@ -37,8 +37,8 @@ LL | y: Option<Option<D<T>>>,
|
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `C` representable
|
LL | y: Box<Option<Option<D<T>>>>,
| ++++ +
LL | y: Option<Box<Option<D<T>>>>,
| ++++ +
error[E0072]: recursive type `D` has infinite size
--> $DIR/mutual-struct-recursion.rs:18:1
@ -51,8 +51,8 @@ LL | z: Option<Option<C<T>>>,
|
help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `D` representable
|
LL | z: Box<Option<Option<C<T>>>>,
| ++++ +
LL | z: Option<Box<Option<C<T>>>>,
| ++++ +
error: aborting due to 4 previous errors