diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3779.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3779.stderr b/src/test/ui/issues/issue-3779.stderr new file mode 100644 index 000000000..e853d0f8c --- /dev/null +++ b/src/test/ui/issues/issue-3779.stderr @@ -0,0 +1,17 @@ +error[E0072]: recursive type `S` has infinite size + --> $DIR/issue-3779.rs:1:1 + | +LL | struct S { + | ^^^^^^^^ recursive type has infinite size +LL | +LL | element: Option<S> + | --------- recursive without indirection + | +help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `S` representable + | +LL | element: Option<Box<S>> + | ++++ + + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0072`. |