]> 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 f5e89638f1614ab8138a3494d7fb417ed8c3f5f0..7b17e91421660f4a31d83ec28692b8394a7da156 100644 (file)
@@ -1,13 +1,16 @@
 error[E0072]: recursive type `S` has infinite size
-  --> $DIR/issue-3779.rs:11:1
+  --> $DIR/issue-3779.rs:1:1
    |
 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