]> git.lizzy.rs Git - rust.git/blobdiff - tests/run-pass/sums.rs
Replace Repr with the new ty::layout in rustc.
[rust.git] / tests / run-pass / sums.rs
index b8635b4dcd648c1929b1d1c0493cd1e6454d8f0a..d6eddc69fc9a5b5b0d4454b5310528114d193913 100644 (file)
@@ -2,24 +2,24 @@
 #![allow(dead_code, unused_attributes)]
 
 #[derive(Debug, PartialEq)]
-enum Unit { Unit }
+enum Unit { Unit(()) } // Force non-C-enum representation.
 
 #[miri_run]
 fn return_unit() -> Unit {
-    Unit::Unit
+    Unit::Unit(())
 }
 
 #[derive(Debug, PartialEq)]
-enum MyBool { False, True }
+enum MyBool { False(()), True(()) } // Force non-C-enum representation.
 
 #[miri_run]
 fn return_true() -> MyBool {
-    MyBool::True
+    MyBool::True(())
 }
 
 #[miri_run]
 fn return_false() -> MyBool {
-    MyBool::False
+    MyBool::False(())
 }
 
 #[miri_run]