about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-02-16 17:18:38 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2019-02-16 17:18:51 +0100
commitbab8113954bd24e63a1e51f00088d761560ddd98 (patch)
tree73e49e99530007d646127901ae48721218ff9d77 /example/std_example.rs
parentccf07adbfb51cd1d98c3ab70488bb6a880ba63e2 (diff)
downloadrust-bab8113954bd24e63a1e51f00088d761560ddd98.tar.gz
rust-bab8113954bd24e63a1e51f00088d761560ddd98.zip
Fix discriminant_value intrinsic
Fixes #349
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index cd0a88c85fc..ce74efee8a8 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -15,4 +15,12 @@ fn main() {
 
     static ONCE: std::sync::Once = std::sync::ONCE_INIT;
     ONCE.call_once(|| {});
+
+    LoopState::Continue(()) == LoopState::Break(());
+}
+
+#[derive(PartialEq)]
+enum LoopState {
+    Continue(()),
+    Break(())
 }