Skip to content

Commit c89afc3

Browse files
committed
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.
1 parent 5a69cd7 commit c89afc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/compile-fail/pat-ref-enum.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn matcher(x: option<int>) {
11+
fn matcher(x: Option<int>) {
1212
match x {
13-
ref some(i) => {} //~ ERROR expected identifier, found enum pattern
14-
none => {}
13+
ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
14+
None => {}
1515
}
1616
}
1717

0 commit comments

Comments
 (0)