mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
Rollup merge of #113957 - Urgau:regression-test-issue-113941, r=dtolnay
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 https://github.com/rust-lang/rust/issues/113941#issuecomment-1646446769.
This commit is contained in:
commit
b7183bd167
13
tests/ui/layout/issue-113941.rs
Normal file
13
tests/ui/layout/issue-113941.rs
Normal file
@ -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() {}
|
Loading…
Reference in New Issue
Block a user