mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 15:23:05 +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
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
fn matcher(x: option<int>) {
|
fn matcher(x: Option<int>) {
|
||||||
match x {
|
match x {
|
||||||
ref some(i) => {} //~ ERROR expected identifier, found enum pattern
|
ref Some(i) => {} //~ ERROR expected identifier, found enum pattern
|
||||||
none => {}
|
None => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user