]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-3779.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-3779.stderr
index 3538cb199c3e0bfaf9b7b716107b1c47452223fb..7b17e91421660f4a31d83ec28692b8394a7da156 100644 (file)
@@ -3,11 +3,14 @@ error[E0072]: recursive type `S` has infinite size
    |
 LL | struct S {
    | ^^^^^^^^ recursive type has infinite size
-LL |     //~^ ERROR E0072
+LL |
 LL |     element: Option<S>
-   |     ------------------ recursive without indirection
+   |              --------- recursive without indirection
    |
-   = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `S` representable
+help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `S` representable
+   |
+LL |     element: Box<Option<S>>
+   |              ^^^^         ^
 
 error: aborting due to previous error