diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-02-16 17:18:38 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-02-16 17:18:51 +0100 |
| commit | bab8113954bd24e63a1e51f00088d761560ddd98 (patch) | |
| tree | 73e49e99530007d646127901ae48721218ff9d77 /example/std_example.rs | |
| parent | ccf07adbfb51cd1d98c3ab70488bb6a880ba63e2 (diff) | |
| download | rust-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.rs | 8 |
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(()) } |
