Skip to content

[NLL] Dangly paths for box #52782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug in test pointed out during review.
  • Loading branch information
pnkfelix committed Aug 1, 2018
commit c02c00b8455d6ec6eff50ae94bebb4a424c95e02
4 changes: 2 additions & 2 deletions src/test/ui/issue-45696-no-variant-box-recur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down