diff options
| author | Tyler Bindon <martica@martica.org> | 2013-01-25 12:34:12 -0700 |
|---|---|---|
| committer | Tyler Bindon <martica@martica.org> | 2013-01-25 19:42:24 -0700 |
| commit | c89afc39718ed7b326f2e4f4ba4dd65a6d160bb3 (patch) | |
| tree | ace9ff59a270b0513c6e0d9d713c1a513a248e9a /src/test/compile-fail/pat-ref-enum.rs | |
| parent | 5a69cd75fb9e45d1776b091e1dcf2f9827727e11 (diff) | |
| download | rust-c89afc39718ed7b326f2e4f4ba4dd65a6d160bb3.tar.gz rust-c89afc39718ed7b326f2e4f4ba4dd65a6d160bb3.zip | |
Fix Option camel case in a compile-fail test
The compile fails for another reason, that triggers before the the failure for non-camel cased option, some or none undefined errors.
Diffstat (limited to 'src/test/compile-fail/pat-ref-enum.rs')
| -rw-r--r-- | src/test/compile-fail/pat-ref-enum.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/pat-ref-enum.rs b/src/test/compile-fail/pat-ref-enum.rs index 129fced62d5..f1f0637a318 100644 --- a/src/test/compile-fail/pat-ref-enum.rs +++ b/src/test/compile-fail/pat-ref-enum.rs @@ -8,10 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn matcher(x: option<int>) { +fn matcher(x: Option<int>) { match x { - ref some(i) => {} //~ ERROR expected identifier, found enum pattern - none => {} + ref Some(i) => {} //~ ERROR expected identifier, found enum pattern + None => {} } } |
