]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type/type-recursive.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / type / type-recursive.stderr
index 72bf372e561d6e2004038b96c1deb1e5e4ca7218..d6d32cc5d6f395ffa9c2b4e4f239287fe5e0a548 100644 (file)
@@ -5,9 +5,12 @@ LL | struct T1 {
    | ^^^^^^^^^ recursive type has infinite size
 LL |     foo: isize,
 LL |     foolish: T1
-   |     ----------- recursive without indirection
+   |              -- recursive without indirection
    |
-   = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `T1` representable
+help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `T1` representable
+   |
+LL |     foolish: Box<T1>
+   |              ^^^^  ^
 
 error: aborting due to previous error