2021-05-13 09:42:25 -05:00
|
|
|
// revisions: mirunsafeck thirunsafeck
|
|
|
|
// [thirunsafeck]compile-flags: -Z thir-unsafeck
|
|
|
|
|
2016-08-15 08:10:58 -05:00
|
|
|
union U {
|
2018-06-09 18:53:36 -05:00
|
|
|
a: str,
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2018-06-19 17:53:51 -05:00
|
|
|
|
2016-08-26 11:23:42 -05:00
|
|
|
b: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
union W {
|
|
|
|
a: u8,
|
2018-06-09 18:53:36 -05:00
|
|
|
b: str,
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2016-08-15 08:10:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|