Skip to content

Commit

Permalink
Rollup merge of #113957 - Urgau:regression-test-issue-113941, r=dtolnay
Browse files Browse the repository at this point in the history
Add regression test for issue #113941 - naive layout isn't refined

This PR adds a regression test for issue #113941 - `the naive layout isn't refined by the actual layout` based on the minimized repro #113941 (comment).
  • Loading branch information
matthiaskrgr authored Jul 22, 2023
2 parents 00e1475 + ffa4b6f commit b7183bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/layout/issue-113941.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// build-pass
// revisions: normal randomize-layout
// [randomize-layout]compile-flags: -Zrandomize-layout

enum Void {}

pub struct Struct([*const (); 0], Void);

pub enum Enum {
Variant(Struct),
}

fn main() {}

0 comments on commit b7183bd

Please sign in to comment.