summaryrefslogtreecommitdiffstats
path: root/tests/ui/occurs-check-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/occurs-check-2.stderr')
-rw-r--r--tests/ui/occurs-check-2.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/occurs-check-2.stderr b/tests/ui/occurs-check-2.stderr
new file mode 100644
index 000000000..b68c3fa5b
--- /dev/null
+++ b/tests/ui/occurs-check-2.stderr
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+ --> $DIR/occurs-check-2.rs:7:9
+ |
+LL | f = Box::new(g);
+ | ^^^^^^^^^^^ cyclic type of infinite size
+ |
+help: consider unboxing the value
+ |
+LL | f = *Box::new(g);
+ | +
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.