summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/issue-2718-a.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/structs-enums/issue-2718-a.stderr')
-rw-r--r--src/test/ui/structs-enums/issue-2718-a.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/structs-enums/issue-2718-a.stderr b/src/test/ui/structs-enums/issue-2718-a.stderr
new file mode 100644
index 000000000..7ea620f38
--- /dev/null
+++ b/src/test/ui/structs-enums/issue-2718-a.stderr
@@ -0,0 +1,14 @@
+error[E0072]: recursive type `Pong` has infinite size
+ --> $DIR/issue-2718-a.rs:8:5
+ |
+LL | pub struct Pong(SendPacket<Ping>);
+ | ^^^^^^^^^^^^^^^ ---------------- recursive without indirection
+ |
+help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
+ |
+LL | pub struct Pong(Box<SendPacket<Ping>>);
+ | ++++ +
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0072`.