]> git.lizzy.rs Git - rust.git/commitdiff
Fix bug in test pointed out during review.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 30 Jul 2018 23:10:06 +0000 (01:10 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 1 Aug 2018 15:44:53 +0000 (17:44 +0200)
src/test/ui/issue-45696-no-variant-box-recur.rs

index 740e99c82a556780dfdb800cca7ae1ceed333eb6..da42e171fcc5089fdfa8b78d605336e6b88048f8 100644 (file)
@@ -39,8 +39,8 @@ struct E { field: F }
 struct F { field: Box<E> }
 
 // indirect non-regular recursion with indirect ownership via box.
-struct G { field: (F, F) }
-struct H { field: Box<E> }
+struct G { field: (H, H) }
+struct H { field: Box<G> }
 
 // These enums are cases that are not currently hit by the
 // `visit_terminator_drop` recursion down a type's structural