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