mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-23 22:14:15 +00:00
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.
This commit is contained in:
parent
5a69cd75fb
commit
c89afc3971
@ -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 => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user