Skip to content

Commit

Permalink
Fix Option camel case in a compile-fail test
Browse files Browse the repository at this point in the history
The compile fails for another reason, that triggers before the the failure for non-camel cased option, some or none undefined errors.
  • Loading branch information
martica committed Jan 26, 2013
1 parent 5a69cd7 commit c89afc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/compile-fail/pat-ref-enum.rs
Expand Up @@ -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 => {}
}
}

Expand Down

0 comments on commit c89afc3

Please sign in to comment.